From ad81ae4c61eb5857cd444ef0caf5b0b33e8072ba Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Sun, 29 Jan 2012 00:26:20 -0800 Subject: Moved the ninja components out of the Montage folder Signed-off-by: Valerio Virgillito --- .../ninja-components/image2.reel/image2.html | 31 ++++++++++++++++++++++ .../ninja-components/image2.reel/image2.js | 26 ++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 node_modules/ninja-components/image2.reel/image2.html create mode 100644 node_modules/ninja-components/image2.reel/image2.js (limited to 'node_modules/ninja-components/image2.reel') diff --git a/node_modules/ninja-components/image2.reel/image2.html b/node_modules/ninja-components/image2.reel/image2.html new file mode 100644 index 00000000..8d7329b6 --- /dev/null +++ b/node_modules/ninja-components/image2.reel/image2.html @@ -0,0 +1,31 @@ + + + + + + + + +
+ + diff --git a/node_modules/ninja-components/image2.reel/image2.js b/node_modules/ninja-components/image2.reel/image2.js new file mode 100644 index 00000000..750b837a --- /dev/null +++ b/node_modules/ninja-components/image2.reel/image2.js @@ -0,0 +1,26 @@ +/* +This file contains proprietary software owned by Motorola Mobility, Inc.
+No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ + +var Montage = require("montage").Montage, + Component = require("ui/component").Component; + +var Image2 = exports.Image2 = Montage.create(Component, { + + _src: {value: null}, + + src: { + set: function(value) { + this._src = value; + this.needsDraw = true; + } + }, + + draw: { + value: function() { + this._element.style.background = "url(" + this._src + ")"; + } + } +}); \ No newline at end of file -- cgit v1.2.3