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 --- js/io/system/ninjalibrary.json | 2 +- .../montage-google/youtube-channel.reel/youtube-channel.js | 12 ++---------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/js/io/system/ninjalibrary.json b/js/io/system/ninjalibrary.json index 86134b97..7f8ee94f 100644 --- a/js/io/system/ninjalibrary.json +++ b/js/io/system/ninjalibrary.json @@ -1,6 +1,6 @@ { "libraries": [ - {"name": "Montage", "path": "/node_modules/descriptor.json", "version": "0.11.2.0"}, + {"name": "Montage", "path": "/node_modules/descriptor.json", "version": "0.11.2.1"}, {"name": "RDGE", "path": "/assets/descriptor.json", "version": "0.6.0.3"} ] } \ No newline at end of file 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