From cff7deb476f4095d7d3d76c92360617d3316a96f Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Sun, 18 Mar 2012 00:07:39 -0700 Subject: changing the picasa-carousel to use a getter and setter for the queryParameter Signed-off-by: Valerio Virgillito --- .../montage/ui/picasa-carousel.reel/picasa-carousel.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'node_modules/montage/ui') diff --git a/node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js b/node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js index 25d363b0..1f5e7dd0 100644 --- a/node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js +++ b/node_modules/montage/ui/picasa-carousel.reel/picasa-carousel.js @@ -20,9 +20,19 @@ var PicasaCarousel = exports.PicasaCarousel = Montage.create(Component, /** @len value: null }, + _queryParameter: { + enumerable: false, + value: null + }, + queryParameter: { - enumerable: false, - value: null + get: function() { + return this._queryParameter; + }, + set: function(value) { + this._queryParameter = value; + this.performSearch(); + } }, resultCount: { -- cgit v1.2.3