[TIMOB-6398] MobileWeb: Some properties passed in to a UI element constructor are ignored.
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-12-13T22:34:37.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | Sprint 2011-50, Release 1.8.0.1, Release 2.0.0 |
Components | MobileWeb |
Labels | n/a |
Reporter | Bryan Hughes |
Assignee | Chris Barber |
Created | 2011-11-30T17:06:21.000+0000 |
Updated | 2017-03-03T23:17:03.000+0000 |
Description
The Ti._5.preset() and Ti._5.presetUserDefinedElements() are used to initialize properties based on the args passed in. They perform a check on the property and only set the value if the property was previously undefined. Many (most?) of the properties are set to null (which is not undefined) causing the arguments to be ignored.
These methods needs to be replaced with better versions, and UI properties need to be initialized to proper default values.
Attachments
File | Date | Size |
app.js | 2011-12-07T03:15:46.000+0000 | 5860 |
Test is Kitchen Sink.
I attached a test case, but the Kitchen Sink should also be tested.
Pull request: https://github.com/appcelerator/titanium_mobile/pull/865
Closing ticket.