Defined in: text_field_support.js
- value(key, value)
Class Method Detail
The problem this property is trying to solve is twofold:
- Make it possible to set the value of a text field that has not yet been inserted into the DOM
- Make sure that
valueproperly reflects changes made directly to the element's
In order to achieve (2), we need to make the property volatile, so that SproutCore will call the getter no matter what if get() is called.
In order to achieve (1), we need to store a local cache of the value, so that SproutCore can set the proper value as soon as the underlying DOM element is created.