From 409361a7f7653ddb09f9a7463e9ea4ce47caa960 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 3 Jul 2012 14:26:19 -0700 Subject: Removing the youtube hack now that we have the proper fix from montage Removing the saved instance of the component when opening a file containing the youtube component. Montage made the fix where the instance is now serialized property. Signed-off-by: Valerio Virgillito --- .../montage-google/youtube-channel.reel/youtube-channel.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'node_modules') diff --git a/node_modules/montage-google/youtube-channel.reel/youtube-channel.js b/node_modules/montage-google/youtube-channel.reel/youtube-channel.js index f06216e1..53019054 100644 --- a/node_modules/montage-google/youtube-channel.reel/youtube-channel.js +++ b/node_modules/montage-google/youtube-channel.reel/youtube-channel.js @@ -10,9 +10,6 @@ var Montage = require("montage").Montage, var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, { - _savedReference: { - value: null - }, _userRe: { value: /youtube.com\/(user\/)?([a-z0-9]+)/i @@ -118,7 +115,7 @@ var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, { this._positionPopup(); - this._savedReference = this.element; + } }, @@ -127,12 +124,7 @@ var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, { var self = this; if (this._script) { - if(this.element.childNodes.length < 1) { - this._savedReference.appendChild(this._script); - } else { - this.element.appendChild(this._script); - } - + this.element.appendChild(this._script); this._script = null; } -- cgit v1.2.3