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/textarea.reel/textarea.js | 48 +++++++++++++---------- 1 file changed, 28 insertions(+), 20 deletions(-) mode change 100755 => 100644 node_modules/montage/ui/textarea.reel/textarea.js (limited to 'node_modules/montage/ui/textarea.reel/textarea.js') diff --git a/node_modules/montage/ui/textarea.reel/textarea.js b/node_modules/montage/ui/textarea.reel/textarea.js old mode 100755 new mode 100644 index 44e5f0a5..f812fb97 --- a/node_modules/montage/ui/textarea.reel/textarea.js +++ b/node_modules/montage/ui/textarea.reel/textarea.js @@ -3,27 +3,35 @@ 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/textarea.reel" - @requires montage/core/core - @requires montage/ui/editable-text -*/ + var Montage = require("montage").Montage, - EditableText = require("ui/editable-text").EditableText; -/** - @class module:"montage/ui/textarea.reel".TextArea - @classdesc TextArea component - multiline text field - @extends module:montage/ui/editable-text.EditableText -*/ -exports.TextArea = Montage.create(EditableText, /** @lends module:"montage/ui/textarea.reel".TextArea# */{ -/** - Description TODO - @private -*/ - _drawSpecific: { - enumerable: false, - value: function() { - this.element.classList.add('montage-textarea'); +Component = require("ui/component").Component, +TextInput = require("ui/text-input").TextInput; + +var TextArea = exports.TextArea = Montage.create(TextInput, { + + textContent: { + get: function() { + return this.value; + }, + set: function(v) { + this.value = v; } } + +}); + +TextArea.addAttributes({ + autofocus: null, + cols: null, + dirname: null, + disabled: {dataType: 'boolean'}, + form: null, + maxlength: null, + name: null, + placeholder: null, + readonly: {dataType: 'boolean'}, + required: {dataType: 'boolean'}, + rows: null, + wrap: null }); -- cgit v1.2.3