[TIMOB-8331] iOS: HW window fires open and focus events in wrong order
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-05-04T11:58:38.000+0000 |
| Affected Version/s | Release 2.0.0, Release 1.8.2 |
| Fix Version/s | Release 2.1.0, Sprint 2012-09 API |
| Components | iOS |
| Labels | api, module_window, parity, qe-testadded |
| Reporter | Shawn Lipscomb |
| Assignee | Sabil Rahim |
| Created | 2012-03-27T13:00:02.000+0000 |
| Updated | 2013-12-02T09:14:53.000+0000 |
What's up with the styling/markup in JIRA now? The \``` markup used to show a block of code in a box with a title on it. Now it just shows line numbers and a monospaced font.
I was unable to reproduce this issue with the latest CI build: 2.0.0.v20120326211803 It seems to work fine for the iOS simulator. I have contacted Shawn via the help desk ticket, waiting for him to confirm. Will open again, if necessary. @Shawn, the reason why it looks different is because we recently changed the style of the JIRA code formatter. This is the new standard behavior now. :)
Sorry, I posted the wrong test code. Try this one, which uses the *url* property to make the new window from another js context. Using SDK 2.0.0.v20120325213306: app.js:
win1.js:var win1 = Titanium.UI.createWindow({ url:'win1.js', navBarHidden:true, backgroundColor:'#fff' }); win1.open();var win1=Ti.UI.currentWindow; function OnFocus() { Ti.API.info('** focus event'); } function OnOpen() { Ti.API.info('** open event'); } win1.addEventListener('focus',OnFocus); win1.addEventListener('open',OnOpen);I updated the original ticket description to reflect the new code. I was able to reproduce the issue with 1.8.2.
HD ticket: http://support.appcelerator.com/tickets/APP-545824
Still a problem in SDK 2.1.0.v20120416160358.
Fixed by PR 2106
Verified fixed in SDK 2.1.0.v20120608174150. Thanks!
Closing as fixed. Verified with: Titanium Studio, build: 2.1.1.201206291424 Titanium SDK: 2.1.0.v20120628121617 iOS 5.0 Simulator