diff options
Diffstat (limited to 'node_modules')
-rw-r--r-- | node_modules/montage-google/youtube-channel.reel/youtube-channel.js | 12 |
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 43c6b9e0..cfef48e3 100644 --- a/node_modules/montage-google/youtube-channel.reel/youtube-channel.js +++ b/node_modules/montage-google/youtube-channel.reel/youtube-channel.js | |||
@@ -34,9 +34,6 @@ var Montage = require("montage").Montage, | |||
34 | 34 | ||
35 | var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, { | 35 | var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, { |
36 | 36 | ||
37 | _savedReference: { | ||
38 | value: null | ||
39 | }, | ||
40 | 37 | ||
41 | _userRe: { | 38 | _userRe: { |
42 | value: /youtube.com\/(user\/)?([a-z0-9]+)/i | 39 | value: /youtube.com\/(user\/)?([a-z0-9]+)/i |
@@ -142,7 +139,7 @@ var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, { | |||
142 | 139 | ||
143 | this._positionPopup(); | 140 | this._positionPopup(); |
144 | 141 | ||
145 | this._savedReference = this.element; | 142 | |
146 | } | 143 | } |
147 | }, | 144 | }, |
148 | 145 | ||
@@ -151,12 +148,7 @@ var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, { | |||
151 | var self = this; | 148 | var self = this; |
152 | 149 | ||
153 | if (this._script) { | 150 | if (this._script) { |
154 | if(this.element.childNodes.length < 1) { | 151 | this.element.appendChild(this._script); |
155 | this._savedReference.appendChild(this._script); | ||
156 | } else { | ||
157 | this.element.appendChild(this._script); | ||
158 | } | ||
159 | |||
160 | this._script = null; | 152 | this._script = null; |
161 | } | 153 | } |
162 | 154 | ||