diff options
Diffstat (limited to 'node_modules/montage/ui/text-input.js')
-rw-r--r-- | node_modules/montage/ui/text-input.js | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/node_modules/montage/ui/text-input.js b/node_modules/montage/ui/text-input.js index d707fa69..3049c383 100644 --- a/node_modules/montage/ui/text-input.js +++ b/node_modules/montage/ui/text-input.js | |||
@@ -79,28 +79,6 @@ var TextInput = exports.TextInput = Montage.create(NativeControl, { | |||
79 | } | 79 | } |
80 | }, | 80 | }, |
81 | 81 | ||
82 | _valueBinding: { | ||
83 | value: null | ||
84 | }, | ||
85 | |||
86 | valueBinding: { | ||
87 | get: function() { | ||
88 | return this._valueBinding; | ||
89 | }, | ||
90 | set: function(value) { | ||
91 | if (this._valueBinding !== value) { | ||
92 | if (this._valueBinding !== null) { | ||
93 | Object.deleteBinding(this, "value"); | ||
94 | } | ||
95 | this._valueBinding = value; | ||
96 | if (String.isString(value)) { | ||
97 | Object.defineBinding(this, "value", {boundObject: this.ownerComponent, boundObjectPropertyPath: value}); | ||
98 | |||
99 | } | ||
100 | } | ||
101 | } | ||
102 | }, | ||
103 | |||
104 | // set value from user input | 82 | // set value from user input |
105 | /** | 83 | /** |
106 | @private | 84 | @private |
@@ -305,7 +283,7 @@ TextInput.addAttributes({ | |||
305 | formaction: null, | 283 | formaction: null, |
306 | formenctype: null, | 284 | formenctype: null, |
307 | formmethod: null, | 285 | formmethod: null, |
308 | formnovalidate: null, | 286 | formnovalidate: {dataType: 'boolean'}, |
309 | formtarget: null, | 287 | formtarget: null, |
310 | height: null, | 288 | height: null, |
311 | list: null, | 289 | list: null, |