Project: titanium
Issue TIMOB-20041: iOS: Window close event not fired on NavigationWindow with ListView
When opening a new window with a ListView from within a NavigationWindow, the close event of this window sometimes get fired and sometimes won't. Example: {code:xml|title=win1.xml} Open Blue Window {code} {code:javascript|title=win1.js} function openBlueWindow(e) { var win2 = Alloy.createController('win2').getView(); win2.addEventListener("close", function() { console.log("CLOSED!"); }); $.navwin.openWindow(win2); } {code} $.navwin.open(); {code:xml|title=win2.xml} {code} {code:javascript|title=win2.js} function closeWindow(){ $.win2.close(); } {code} When you close window 2 the expected behaviour is to see "CLOSED!" in the console, but it only randomly shows.
Story points: 5