From a3024011a91d3941f81481dd4d600e9684eb0fd4 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 2 Feb 2012 00:11:51 -0800 Subject: upgrading to Montage v0.6 Signed-off-by: Valerio Virgillito --- node_modules/montage/ui/image.reel/image.js | 65 +++++------------------------ 1 file changed, 11 insertions(+), 54 deletions(-) mode change 100644 => 100755 node_modules/montage/ui/image.reel/image.js (limited to 'node_modules/montage/ui/image.reel/image.js') diff --git a/node_modules/montage/ui/image.reel/image.js b/node_modules/montage/ui/image.reel/image.js old mode 100644 new mode 100755 index 457d43d3..5deebbf6 --- a/node_modules/montage/ui/image.reel/image.js +++ b/node_modules/montage/ui/image.reel/image.js @@ -3,63 +3,20 @@ 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. */ -/** - @module "montage/ui/image.reel" - @requires montage/core/core - @requires montage/ui/component -*/ var Montage = require("montage").Montage, - Component = require("ui/component").Component; + Component = require("ui/component").Component, + NativeControl = require("ui/native-control").NativeControl; + /** - @class module:"montage/ui/image.reel".Image - @extends module:montage/ui/component.Component + * The native control with binding support for the standard attributes */ -exports.Image = Montage.create(Component, /** @lends module:"montage/ui/image.reel".Image# */ { +var Image = exports.Image = Montage.create(NativeControl, { - hasTemplate: { - enumerable: false, - value: false - }, -/** - Description TODO - @private -*/ - _src: { - enumerable: false, - value: null - }, -/** - Description TODO - @type {Function} - @default null - */ - src: { - get: function() { - return this._src; - }, - set: function(value) { - if (this._src !== value) { - this.needsDraw = true; - } - this._src = value; - } - }, -/** - Description TODO - @type {Property} - @default {String} "" - */ - defaultSrc: { - value: "" - }, -/** - Description TODO - @function - */ - draw: { - value: function() { - this.element.src = this._src != null ? this._src : this.defaultSrc; - } - } +}); +Image.addAttributes({ + alt: null, + height: null, + src: null, + width: null }); -- cgit v1.2.3