From 2ea84629a355a02d7eaa33464a0298ec4999073c Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 31 May 2012 10:14:22 -0700 Subject: updating the google components serialization to enable saving Signed-off-by: Valerio Virgillito --- .../youtube-channel.reel/youtube-channel.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'node_modules/montage-google/youtube-channel.reel') 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 @@ /*global require,exports*/ var Montage = require("montage").Montage, Component = require("montage/ui/component").Component, - Uuid = require("montage/core/Uuid"); + Uuid = require("montage/core/uuid"); var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, { _userRe: { - enumerable: false, value: /youtube.com\/(user\/)?([a-z0-9]+)/i }, imageA: { value: null }, + imageB: { value: null }, + imageC: { value: null }, + _popupElement: { - enumerable: false, value: null }, _shouldShowPopup: { - enumerable: false, value: false }, _channelUrl: { - enumerable: false, value: null }, + channelUrl: { depends: ["channel"], get: function() { @@ -237,6 +237,13 @@ var YoutubeChannel = exports.YoutubeChannel = Montage.create(Component, { this._entries = data.feed.entry || []; this.needsDraw = true; } - } + }, + serializeProperties: { + value: function(serializer) { + serializer.set("element", this.element); + serializer.set("channelUrl", this.channelUrl); + serializer.set("channel", this.channel); + } + } }); \ No newline at end of file -- cgit v1.2.3