aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/text-input.js
diff options
context:
space:
mode:
authorhwc4872012-03-24 14:07:58 -0700
committerhwc4872012-03-24 14:07:58 -0700
commitcca20db1f346fc9bf2ead64c83e479f5f5ebf2d2 (patch)
tree4f5c42f0a1df00dcd1a2064dd176fcff7930ba47 /node_modules/montage/ui/text-input.js
parent62f4327f9b83760e52a1f6bf1e689b1e0a780fbb (diff)
parent7ee75fef18c21275cf29740a6fdd81ea90e41f45 (diff)
downloadninja-cca20db1f346fc9bf2ead64c83e479f5f5ebf2d2.tar.gz
Merge branch 'montage-integration' of github.com:Motorola-Mobility/ninja-internal into Textures
Diffstat (limited to 'node_modules/montage/ui/text-input.js')
-rw-r--r--node_modules/montage/ui/text-input.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/node_modules/montage/ui/text-input.js b/node_modules/montage/ui/text-input.js
index cdd20c78..d707fa69 100644
--- a/node_modules/montage/ui/text-input.js
+++ b/node_modules/montage/ui/text-input.js
@@ -79,6 +79,28 @@ 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
82 // set value from user input 104 // set value from user input
83 /** 105 /**
84 @private 106 @private