aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage-google/youtube-channel.reel
diff options
context:
space:
mode:
authorEric Guzman2012-06-11 13:28:42 -0700
committerEric Guzman2012-06-11 13:28:42 -0700
commit3a4727ffc350216a434a7c6977b6a23653b77780 (patch)
treec5dff306f8803c36a16163ba5df1e7f492e762b5 /node_modules/montage-google/youtube-channel.reel
parentd6b46ba496c9c8974ae39bb476aea35bcd1ddaf1 (diff)
parent337efc667372326ae2f9984d89a47bb151016774 (diff)
downloadninja-3a4727ffc350216a434a7c6977b6a23653b77780.tar.gz
Merge branch 'binding' of github.com:dhg637/ninja-internal into binding
Diffstat (limited to 'node_modules/montage-google/youtube-channel.reel')
-rw-r--r--node_modules/montage-google/youtube-channel.reel/youtube-channel.js19
1 files changed, 13 insertions, 6 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 88f87f3c..18ea7923 100644
--- a/node_modules/montage-google/youtube-channel.reel/youtube-channel.js
+++ b/node_modules/montage-google/youtube-channel.reel/youtube-channel.js
@@ -6,38 +6,38 @@
6/*global require,exports*/ 6/*global require,exports*/
7var Montage = require("montage").Montage, 7var Montage = require("montage").Montage,
8 Component = require("montage/ui/component").Component, 8 Component = require("montage/ui/component").Component,
9 Uuid = require("montage/core/Uuid"); 9 Uuid = require("montage/core/uuid");
10 10
11var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, { 11var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, {
12 12
13 _userRe: { 13 _userRe: {
14 enumerable: false,
15 value: /youtube.com\/(user\/)?([a-z0-9]+)/i 14 value: /youtube.com\/(user\/)?([a-z0-9]+)/i
16 }, 15 },
17 16
18 imageA: { 17 imageA: {
19 value: null 18 value: null
20 }, 19 },
20
21 imageB: { 21 imageB: {
22 value: null 22 value: null
23 }, 23 },
24
24 imageC: { 25 imageC: {
25 value: null 26 value: null
26 }, 27 },
28
27 _popupElement: { 29 _popupElement: {
28 enumerable: false,
29 value: null 30 value: null
30 }, 31 },
31 32
32 _shouldShowPopup: { 33 _shouldShowPopup: {
33 enumerable: false,
34 value: false 34 value: false
35 }, 35 },
36 36
37 _channelUrl: { 37 _channelUrl: {
38 enumerable: false,
39 value: null 38 value: null
40 }, 39 },
40
41 channelUrl: { 41 channelUrl: {
42 depends: ["channel"], 42 depends: ["channel"],
43 get: function() { 43 get: function() {
@@ -237,6 +237,13 @@ var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, {
237 this._entries = data.feed.entry || []; 237 this._entries = data.feed.entry || [];
238 this.needsDraw = true; 238 this.needsDraw = true;
239 } 239 }
240 } 240 },
241 241
242 serializeProperties: {
243 value: function(serializer) {
244 serializer.set("element", this.element);
245 serializer.set("channelUrl", this.channelUrl);
246 serializer.set("channel", this.channel);
247 }
248 }
242}); \ No newline at end of file 249}); \ No newline at end of file