diff options
author | François Frisch | 2012-03-17 19:28:30 -0700 |
---|---|---|
committer | François Frisch | 2012-03-17 19:28:30 -0700 |
commit | 09852e9b9b8e64f003bed5aa57630d8b42c8ac95 (patch) | |
tree | de6f15ae7557a17f105386729952f35783f67647 /node_modules/montage/ui/picasa-carousel.reel/image.reel/image.js | |
parent | a086ca62423a09807e2f3a79107249bc31d5e908 (diff) | |
download | ninja-09852e9b9b8e64f003bed5aa57630d8b42c8ac95.tar.gz |
Integrating picasa carousel and youtube channel
Diffstat (limited to 'node_modules/montage/ui/picasa-carousel.reel/image.reel/image.js')
-rw-r--r-- | node_modules/montage/ui/picasa-carousel.reel/image.reel/image.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/node_modules/montage/ui/picasa-carousel.reel/image.reel/image.js b/node_modules/montage/ui/picasa-carousel.reel/image.reel/image.js new file mode 100644 index 00000000..0bced41b --- /dev/null +++ b/node_modules/montage/ui/picasa-carousel.reel/image.reel/image.js | |||
@@ -0,0 +1,20 @@ | |||
1 | var Montage = require("montage").Montage, | ||
2 | Component = require("ui/component").Component; | ||
3 | |||
4 | var Image = exports.Image = Montage.create(Component, { | ||
5 | |||
6 | _src: {value: null}, | ||
7 | |||
8 | src: { | ||
9 | set: function(value) { | ||
10 | this._src = value; | ||
11 | this.needsDraw = true; | ||
12 | } | ||
13 | }, | ||
14 | |||
15 | draw: { | ||
16 | value: function() { | ||
17 | this._element.style.backgroundImage = "url(" + this._src + ")"; | ||
18 | } | ||
19 | } | ||
20 | }); | ||