Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8331] iOS: HW window fires open and focus events in wrong order

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-05-04T11:58:38.000+0000
Affected Version/sRelease 2.0.0, Release 1.8.2
Fix Version/sRelease 2.1.0, Sprint 2012-09 API
ComponentsiOS
Labelsapi, module_window, parity, qe-testadded
ReporterShawn Lipscomb
AssigneeSabil Rahim
Created2012-03-27T13:00:02.000+0000
Updated2013-12-02T09:14:53.000+0000

Description

Comments

  1. Shawn Lipscomb 2012-03-27

    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.
  2. Junaid Younus 2012-03-27

    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. :)
  3. Shawn Lipscomb 2012-03-28

    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:
       var win1 = Titanium.UI.createWindow({
           url:'win1.js',
           navBarHidden:true,
           backgroundColor:'#fff'
       });
       win1.open();
       
    win1.js:
       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);
       
  4. Shawn Lipscomb 2012-03-28

  5. Junaid Younus 2012-03-28

    I updated the original ticket description to reflect the new code. I was able to reproduce the issue with 1.8.2.
  6. Shawn Lipscomb 2012-04-05

    HD ticket: http://support.appcelerator.com/tickets/APP-545824
  7. Shawn Lipscomb 2012-04-17

    Still a problem in SDK 2.1.0.v20120416160358.
  8. Vishal Duggal 2012-05-04

    Fixed by PR 2106
  9. Shawn Lipscomb 2012-06-19

    Verified fixed in SDK 2.1.0.v20120608174150. Thanks!
  10. Tamila Smolich 2012-07-02

    Closing as fixed. Verified with: Titanium Studio, build: 2.1.1.201206291424 Titanium SDK: 2.1.0.v20120628121617 iOS 5.0 Simulator

JSON Source