diff options
author | Eric Guzman | 2012-06-20 19:42:03 -0700 |
---|---|---|
committer | Eric Guzman | 2012-06-20 19:42:03 -0700 |
commit | 3270aac4980c908f305fb53abadda5121ff6b9cb (patch) | |
tree | 6255aaab239fde71b1f4862dd70de7be62f48b85 /node_modules/montage/ui/native/input-text.reel | |
parent | a5d93daf6fdccbfee160d6a8ba08f6b6d4b9d7cc (diff) | |
parent | 87377c81da06abf6d656017859830a3ab2902f0e (diff) | |
download | ninja-3270aac4980c908f305fb53abadda5121ff6b9cb.tar.gz |
Merge branch 'binding' of github.com:dhg637/ninja-internal into binding
Diffstat (limited to 'node_modules/montage/ui/native/input-text.reel')
-rw-r--r-- | node_modules/montage/ui/native/input-text.reel/input-text.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/node_modules/montage/ui/native/input-text.reel/input-text.js b/node_modules/montage/ui/native/input-text.reel/input-text.js new file mode 100644 index 00000000..3d627b01 --- /dev/null +++ b/node_modules/montage/ui/native/input-text.reel/input-text.js | |||
@@ -0,0 +1,26 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | /** | ||
8 | @module "montage/ui/input-text.reel" | ||
9 | @requires montage/ui/component | ||
10 | @requires montage/ui/text-input | ||
11 | */ | ||
12 | var Montage = require("montage").Montage, | ||
13 | Component = require("ui/component").Component, | ||
14 | TextInput = require("ui/text-input").TextInput; | ||
15 | /** | ||
16 | * Wraps the a <input type="text"> element with binding support for the element's standard attributes. | ||
17 | @class module:"montage/ui/input-text.reel".InputText | ||
18 | @extends module:montage/ui/text-input.TextInput | ||
19 | |||
20 | */ | ||
21 | var InputText = exports.InputText = Montage.create(TextInput, { | ||
22 | |||
23 | select: { value: function() { this._element.select(); } } | ||
24 | |||
25 | }); | ||
26 | |||