{ "id": "60732", "key": "TIMOB-100", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11213", "name": "Release 0.7.0", "archived": true, "released": true, "releaseDate": "2009-10-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:51:59.000+0000", "created": "2011-04-15T02:23:39.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:51:59.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
This affects:
\ntextfields
\nsliders
\nswitches
\ntextareas
\ntabbedbars (iPhone only)
\nSetting values:
\ntextfield.setValue('newValue');
\nGetting values:
\nvar val = textfield.getValue();
\nor
\nvar val = textfield.value;
\nAlso, for the tabbed bar, we should probably do something\nlike:
\ntabbedbar.setIndex(index);
\nvar activeIndex = tabbedbar.index
\nor
\nvar activeIndex = tabbedbar.getIndex();
While I'm working on it, I've refactored the event callback to\nupdate the proxy's value and index values so that the end dev\ndoesn't have to. I'm not sure how we can easily avoid recursion of\nmaking .value a setter function, beyond having to backmask all the\nvariables.
\nFor now, I'm going to have\nsetValue=function(arg){this.value=arg;this.update()};
\nwrt tabbed bar, the 'index' property is already used during\ninitialization and in the event callback.
I usually have the properties invoke the getter/setter method so\nI typically don't have any recursion issues. Are you using the\ndefineGetter and defineSetter\nmethods for the properties?
Implemented with properties done as foo.setBar(baz) to trigger\nan update. doing foo.bar=baz won't trigger the update. baz=foo.bar\nworks, but baz=foo.getBar() is not yet implemented.