From 8fe92b94ce5e1e2857d088752d94e19db7e3d8a8 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Sun, 17 Jun 2012 22:31:44 -0700 Subject: montage v11 merge into ninja Signed-off-by: Valerio Virgillito --- node_modules/montage/ui/image.reel/image.js | 54 +++++++---------------------- 1 file changed, 12 insertions(+), 42 deletions(-) (limited to 'node_modules/montage/ui/image.reel') diff --git a/node_modules/montage/ui/image.reel/image.js b/node_modules/montage/ui/image.reel/image.js index 149f650b..58b8efba 100755 --- a/node_modules/montage/ui/image.reel/image.js +++ b/node_modules/montage/ui/image.reel/image.js @@ -3,52 +3,22 @@ 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/ui/component - @requires montage/ui/native-control -*/ +/*global require,exports */ var Montage = require("montage").Montage, Component = require("ui/component").Component, - NativeControl = require("ui/native-control").NativeControl; + NativeImage = require("ui/native/image.reel").Image; /** - * Wraps the a <img> element with binding support for its standard attributes. - @class module:"montage/ui/image.reel".Image - @extends module:montage/native-control.NativeControl + * Input Text */ -var Image = exports.Image = Montage.create(NativeControl, { - -}); - -Image.addAttributes(/** @lends module:"montage/ui/image.reel".Image */{ - -/** - A text description to display in place of the image. - @type {string} - @default null -*/ - alt: null, +exports.Image = Montage.create(NativeImage, { -/** - The height of the image in CSS pixels. - @type {number} - @default null -*/ - height: null, + didSetElement: { + value: function() { + // Call super method + NativeImage.didSetElement.call(this); + this['class'] = (this['class'] || '') + ' montage-image'; + } + } -/** - The URL where the image is located. - @type {string} - @default null -*/ - src: null, - -/** - The width of the image in CSS pixels. - @type {number} - @default null -*/ - width: null -}); +}); \ No newline at end of file -- cgit v1.2.3