Issue description
​ListView does not enables any reference to get the child views of the list view. On iOS it gets the child view element to animate it.
Steps to reproduce
Please grab attached 'app.js' for demonstrating the issue.
Click somewhere the Image or Labels for rotate of ImageView.
Notice difference between Platforms.
Console output
{quote}
Ti.API.info('*evt: ' + JSON.stringify(evt.source.apiName));
evt.source.children && Ti.API.info('@@@evt: ' + JSON.stringify(evt.source.children[4]));
{quote}
iOS output:
[INFO] : *evt: "Ti.UI.View"
[INFO] : @@@evt: {"paused":false,"image":"KS_nav_ui.png","backgroundColor":"red","touchEnabled":false,"animating":false,"horizontalWrap":true,"reverse":false,"bindId":"pic","autorotate":true,"duration":200,"stopped":true}
Android Output:
04-18 16:07:15.407: I/TiAPI(26014): *evt: "Ti.UI.View"
04-18 16:07:15.407: I/TiAPI(26014): @@@evt: undefined
04-18 16:07:15.407: E/TiExceptionHandler(26014): (main) [487969,604462] ----- Titanium Javascript Runtime Error -----
04-18 16:07:15.407: E/TiExceptionHandler(26014): (main) [1,604463] - In app.js:208,25
04-18 16:07:15.407: E/TiExceptionHandler(26014): (main) [1,604464] - Message: Uncaught TypeError: Cannot call method 'animate' of undefined
04-18 16:07:15.417: D/AudioHardwareMSM7X30(128): value of device and enable is 6 1 ALSA dev id:6
04-18 16:07:15.417: E/TiExceptionHandler(26014): (main) [9,604473] - Source: evt.source.children[4].animate({
[~ingo], I spoke to [~hpham], he looked at this briefly, and we put it in Sprint 10.
Added code to update proxies with the right views when an event is fired so that the proxies that are accessed during the event in JS will have the right UI control associated with it. https://github.com/appcelerator/titanium_mobile/pull/5734
Added a new PR to enable databind 'transform' property with duration to solve the use case in the sample. https://github.com/appcelerator/titanium_mobile/pull/5888
[~hpham] What is the workaround we came up with for this issue?