diff options
author | Pushkar Joshi | 2012-05-11 08:55:46 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-05-11 08:55:46 -0700 |
commit | d7d6f03257f9e938321cfea0e9f98e99cca7c397 (patch) | |
tree | 05f89cf903b26cab6233dc6dfa7c6f18b5947c2c /node_modules/montage-google/picasa-carousel.reel/image.reel/image.js | |
parent | de9f718b739ef2b31a161d9dac6e81d614fab853 (diff) | |
parent | 632a53278826a33506b302b573ee0681840f2d6c (diff) | |
download | ninja-d7d6f03257f9e938321cfea0e9f98e99cca7c397.tar.gz |
Merge branch 'master' into pentool
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 | }); | ||