aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage-google
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/montage-google')
-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