diff options
Diffstat (limited to 'node_modules/montage/ui/select-input.reel/select-input.js')
-rw-r--r-- | node_modules/montage/ui/select-input.reel/select-input.js | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/node_modules/montage/ui/select-input.reel/select-input.js b/node_modules/montage/ui/select-input.reel/select-input.js index 10847569..8bf6884e 100644 --- a/node_modules/montage/ui/select-input.reel/select-input.js +++ b/node_modules/montage/ui/select-input.reel/select-input.js | |||
@@ -70,7 +70,8 @@ var SelectInput = exports.SelectInput = Montage.create(NativeControl, /** @lend | |||
70 | }, | 70 | }, |
71 | get: function() { | 71 | get: function() { |
72 | return this._content; | 72 | return this._content; |
73 | } | 73 | }, |
74 | serializable: true | ||
74 | }, | 75 | }, |
75 | 76 | ||
76 | // If a <code>contentController</code> is provided, this allows the developer to specify | 77 | // If a <code>contentController</code> is provided, this allows the developer to specify |
@@ -78,15 +79,23 @@ var SelectInput = exports.SelectInput = Montage.create(NativeControl, /** @lend | |||
78 | /** | 79 | /** |
79 | Specifies the property belonging to the component's <code>contentController</code> to use as the "value" part of the <option>. | 80 | Specifies the property belonging to the component's <code>contentController</code> to use as the "value" part of the <option>. |
80 | */ | 81 | */ |
81 | valuePropertyPath: {value: null}, | 82 | valuePropertyPath: { |
83 | value: null, | ||
84 | serializable: true | ||
85 | }, | ||
82 | 86 | ||
83 | /** | 87 | /** |
84 | Specifies the property belonging to the component's <code>contentController</code> to use as the text content of the <option>. | 88 | Specifies the property belonging to the component's <code>contentController</code> to use as the text content of the <option>. |
85 | */ | 89 | */ |
86 | textPropertyPath: {value: null}, | 90 | textPropertyPath: { |
91 | value: null, | ||
92 | serializable: true | ||
93 | }, | ||
87 | 94 | ||
88 | 95 | ||
89 | _contentController: {value: null, enumerable: false}, | 96 | _contentController: { |
97 | value: null | ||
98 | }, | ||
90 | 99 | ||
91 | /** | 100 | /** |
92 | An ArrayController instance used to manage the content and selection of the select input control. | 101 | An ArrayController instance used to manage the content and selection of the select input control. |
@@ -128,7 +137,8 @@ var SelectInput = exports.SelectInput = Montage.create(NativeControl, /** @lend | |||
128 | }); | 137 | }); |
129 | } | 138 | } |
130 | 139 | ||
131 | } | 140 | }, |
141 | serializable: true | ||
132 | }, | 142 | }, |
133 | 143 | ||
134 | _getSelectedValuesFromIndexes: { | 144 | _getSelectedValuesFromIndexes: { |
@@ -185,7 +195,8 @@ var SelectInput = exports.SelectInput = Montage.create(NativeControl, /** @lend | |||
185 | this._synching = false; | 195 | this._synching = false; |
186 | } | 196 | } |
187 | } | 197 | } |
188 | } | 198 | }, |
199 | serializable: true | ||
189 | //dependencies: ["_selectedIndexes"] | 200 | //dependencies: ["_selectedIndexes"] |
190 | }, | 201 | }, |
191 | 202 | ||
@@ -206,7 +217,8 @@ var SelectInput = exports.SelectInput = Montage.create(NativeControl, /** @lend | |||
206 | } | 217 | } |
207 | 218 | ||
208 | 219 | ||
209 | } | 220 | }, |
221 | serializable: true | ||
210 | //dependencies: ["_selectedIndexes"] | 222 | //dependencies: ["_selectedIndexes"] |
211 | }, | 223 | }, |
212 | 224 | ||
@@ -317,7 +329,6 @@ var SelectInput = exports.SelectInput = Montage.create(NativeControl, /** @lend | |||
317 | @function | 329 | @function |
318 | */ | 330 | */ |
319 | prepareForDraw: { | 331 | prepareForDraw: { |
320 | enumerable: false, | ||
321 | value: function() { | 332 | value: function() { |
322 | this.element.addEventListener("focus", this); | 333 | this.element.addEventListener("focus", this); |
323 | this.element.addEventListener('change', this); | 334 | this.element.addEventListener('change', this); |