aboutsummaryrefslogtreecommitdiff
path: root/node_modules
diff options
context:
space:
mode:
authorValerio Virgillito2012-07-03 14:26:19 -0700
committerValerio Virgillito2012-07-03 14:26:19 -0700
commit409361a7f7653ddb09f9a7463e9ea4ce47caa960 (patch)
treef8fb61ecdc98d90ece8f64cbb0621aba7458f62d /node_modules
parentfcae5717dab144c4d961b94510aed11d01568345 (diff)
downloadninja-409361a7f7653ddb09f9a7463e9ea4ce47caa960.tar.gz
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 <valerio@motorola.com>
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/montage-google/youtube-channel.reel/youtube-channel.js12
1 files changed, 2 insertions, 10 deletions
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,
10 10
11var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, { 11var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, {
12 12
13 _savedReference: {
14 value: null
15 },
16 13
17 _userRe: { 14 _userRe: {
18 value: /youtube.com\/(user\/)?([a-z0-9]+)/i 15 value: /youtube.com\/(user\/)?([a-z0-9]+)/i
@@ -118,7 +115,7 @@ var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, {
118 115
119 this._positionPopup(); 116 this._positionPopup();
120 117
121 this._savedReference = this.element; 118
122 } 119 }
123 }, 120 },
124 121
@@ -127,12 +124,7 @@ var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, {
127 var self = this; 124 var self = this;
128 125
129 if (this._script) { 126 if (this._script) {
130 if(this.element.childNodes.length < 1) { 127 this.element.appendChild(this._script);
131 this._savedReference.appendChild(this._script);
132 } else {
133 this.element.appendChild(this._script);
134 }
135
136 this._script = null; 128 this._script = null;
137 } 129 }
138 130