aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/io/system/ninjalibrary.json2
-rw-r--r--node_modules/montage-google/youtube-channel.reel/youtube-channel.js12
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 @@
1{ 1{
2 "libraries": [ 2 "libraries": [
3 {"name": "Montage", "path": "/node_modules/descriptor.json", "version": "0.11.2.0"}, 3 {"name": "Montage", "path": "/node_modules/descriptor.json", "version": "0.11.2.1"},
4 {"name": "RDGE", "path": "/assets/descriptor.json", "version": "0.6.0.3"} 4 {"name": "RDGE", "path": "/assets/descriptor.json", "version": "0.6.0.3"}
5 ] 5 ]
6} \ No newline at end of file 6} \ 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,
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