[TIMOB-10316] Blackberry: User defined properties at creation not set on proxy object.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-09-19T15:29:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2012-19 BB, BB Preview 3 |
Components | BlackBerry |
Labels | n/a |
Reporter | Hayk Zakaryan |
Assignee | Josh Roesslein |
Created | 2012-08-06T02:06:12.000+0000 |
Updated | 2017-03-03T01:02:00.000+0000 |
Description
If you pass in custom properties when creating a proxy, they are never set on the proxy object.
Simplified Test Case
var view = Ti.UI.createView({myProperty: 123});
Ti.API.info('view.myProperty = ' + view.myProperty);
Expected: view.myProperty equals 123
Actual: view.myProperty is not defined
This issue seems to affect all events from all objects
The problem actually appears to be that user defined properties based at creation are not being copied into the object. So later on when you try to access them they are not found.
Example
Expected: myCustomProperty should equal '123' Actual: myCustomProperty is not defined
View click event test case.
I have seen duplicate "click" events firing with the recent R8 upgrade. Could be a possible regression. If so we should open a new ticket to address it.
Closing ticket as Blackberry is no longer supported.