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/montage-google/youtube-channel.reel') 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 From 40c6eb2c06b34f65a74d59ef9687251952858bab Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 12:47:27 -0700 Subject: Normalize HTML doctype --- node_modules/montage-google/youtube-channel.reel/youtube-channel.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node_modules/montage-google/youtube-channel.reel') diff --git a/node_modules/montage-google/youtube-channel.reel/youtube-channel.html b/node_modules/montage-google/youtube-channel.reel/youtube-channel.html index f5a74b8c..7342f3e8 100644 --- a/node_modules/montage-google/youtube-channel.reel/youtube-channel.html +++ b/node_modules/montage-google/youtube-channel.reel/youtube-channel.html @@ -1,4 +1,4 @@ - +