diff options
author | Nivesh Rajbhandari | 2012-05-10 15:48:51 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-05-10 15:48:51 -0700 |
commit | 0467a1cf331c067b21bf5d6acfe47ec9edc2e41c (patch) | |
tree | ae6122570b41879b5fa434c970592fe1deb23a2e /node_modules/montage-google/picasa-carousel.reel/image.reel/image.js | |
parent | 78b3363a1ef802e95a158b5a3584305f84def09c (diff) | |
parent | 632a53278826a33506b302b573ee0681840f2d6c (diff) | |
download | ninja-0467a1cf331c067b21bf5d6acfe47ec9edc2e41c.tar.gz |
Merge branch 'refs/heads/ninja-internal' into WebGLFixes
Conflicts:
js/io/system/ninjalibrary.json
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'node_modules/montage-google/picasa-carousel.reel/image.reel/image.js')
-rw-r--r-- | node_modules/montage-google/picasa-carousel.reel/image.reel/image.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/node_modules/montage-google/picasa-carousel.reel/image.reel/image.js b/node_modules/montage-google/picasa-carousel.reel/image.reel/image.js new file mode 100644 index 00000000..d5b9363e --- /dev/null +++ b/node_modules/montage-google/picasa-carousel.reel/image.reel/image.js | |||
@@ -0,0 +1,20 @@ | |||
1 | var Montage = require("montage").Montage, | ||
2 | Component = require("montage/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 | }); | ||