[TIMOB-7229] iOS: UI.Window - open and focus events not fired when open method before eventlisteners
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-01-16T16:50:44.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Paul Dowsett |
Assignee | Neeraj Gupta |
Created | 2012-01-16T15:09:26.000+0000 |
Updated | 2017-03-09T23:20:12.000+0000 |
Description
Problem
Neither window open or focus events are fired. Note that both work on Android, albeit with bugs (that can be worked around). See linked ticket, and its linked tickets.Test case
var win = Ti.UI.createWindow({
backgroundColor:'red'
});
win.open();
win.addEventListener('open', function() {
Ti.API.info('------- Window open event fired ------');
});
win.addEventListener('focus', function() {
Ti.API.info('------- Window focus event fired ------');
});
open and focus eventlisteners should go before the open method. I will raise an apidoc ticket to convey this advice. Hence, closing as invalid
Closing ticket as invalid.