aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/youtube-channel.reel/youtube-channel.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-03-19 14:46:38 -0700
committerValerio Virgillito2012-03-19 14:46:38 -0700
commite9244d5a0f681ddde5896392c17738add2948687 (patch)
tree06d1d6a65c2e9a05dd6063c1974f2174922c37d3 /node_modules/montage/ui/youtube-channel.reel/youtube-channel.js
parente9c3c7d758fc59ad7b731730dd935170844d9538 (diff)
parentdd382088b4990c4e39f77d793c1a6bd7e3c52aca (diff)
downloadninja-e9244d5a0f681ddde5896392c17738add2948687.tar.gz
Merge branch 'master' of github.com:francoisfrisch/ninja-internal into montage-integration
Diffstat (limited to 'node_modules/montage/ui/youtube-channel.reel/youtube-channel.js')
-rw-r--r--node_modules/montage/ui/youtube-channel.reel/youtube-channel.js19
1 files changed, 16 insertions, 3 deletions
diff --git a/node_modules/montage/ui/youtube-channel.reel/youtube-channel.js b/node_modules/montage/ui/youtube-channel.reel/youtube-channel.js
index fd642290..3e20c406 100644
--- a/node_modules/montage/ui/youtube-channel.reel/youtube-channel.js
+++ b/node_modules/montage/ui/youtube-channel.reel/youtube-channel.js
@@ -77,9 +77,22 @@ var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, {
77 // create url 77 // create url
78 var url = "http://gdata.youtube.com/feeds/api/users/" + this._channel + "/uploads?v=2&alt=json-in-script&callback=" + callbackName; 78 var url = "http://gdata.youtube.com/feeds/api/users/" + this._channel + "/uploads?v=2&alt=json-in-script&callback=" + callbackName;
79 79
80 var script = document.createElement("script"); 80 this.script = document.createElement("script");
81 script.src = url; 81 this.script.src = url;
82 this._element.appendChild(script); 82 this.needsDraw = true;
83 }
84 },
85
86 script: {
87 value: null
88 },
89
90 draw: {
91 value: function() {
92 if (this.script) {
93 this._element.appendChild(this.script);
94 this.script = null;
95 }
83 } 96 }
84 }, 97 },
85 98