{ "id": "89825", "key": "TIMOB-8677", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-04-26T11:02:15.000+0000", "created": "2012-04-11T08:37:10.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "navgroup" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T22:16:37.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If you have a navgroup that has window A open, then open window B and finally close window B - window A's OPEN event is fired on the close of Window B. This doesn't happen when the windows are not part of a navgroup.\r\n\r\nIn this example code win1's open event fires when clicking label2 (to close win2).\r\n\r\n~~~\r\n\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n\r\nnavWindow = Ti.UI.createWindow();\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 1 - Click to open win 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin1.add(label1);\r\nwin1.addEventListener('open',function(e){\r\n\tTi.API.info(\"OPENEVENT\");\r\n});\r\n\r\nnavGroup = Ti.UI.iPhone.createNavigationGroup({\r\n window: win1\r\n});\r\nnavWindow.add(navGroup);\r\nnavWindow.open();\r\n//\r\n// create controls tab and root window\r\n//\r\nlabel1.addEventListener('click', function(e){\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'I am Window 2',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\nlabel2.addEventListener('click',function(e){\r\n\tnavGroup.close(win2);\r\n});\r\n\r\nwin2.add(label2);\r\nnavGroup.open(win2);\r\n});\r\n\r\n~~~", "attachment": [], "flagged": false, "summary": "iOS: Window Open event in navgroup fired unexpectedly", "creator": { "name": "tvfoodmaps", "key": "tvfoodmaps", "displayName": "Frank Apap", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tvfoodmaps", "key": "tvfoodmaps", "displayName": "Frank Apap", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Build: 2.0.1.v20120410131722\r\niOS Simulator (all versions)", "comment": { "comments": [ { "id": "190570", "author": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "body": "I think the correct behavior here should be the window focus event.", "updateAuthor": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "created": "2012-04-11T09:38:29.000+0000", "updated": "2012-04-11T09:38:29.000+0000" }, { "id": "190571", "author": { "name": "tvfoodmaps", "key": "tvfoodmaps", "displayName": "Frank Apap", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Kevin, that makes total sense to me. ", "updateAuthor": { "name": "tvfoodmaps", "key": "tvfoodmaps", "displayName": "Frank Apap", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-11T09:41:58.000+0000", "updated": "2012-04-11T09:41:58.000+0000" }, { "id": "192771", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can not reproduce on latest master", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-26T11:02:15.000+0000", "updated": "2012-04-26T11:02:15.000+0000" }, { "id": "195385", "author": { "name": "tvfoodmaps", "key": "tvfoodmaps", "displayName": "Frank Apap", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I took the latest 2.0.2 build and it's still happening.", "updateAuthor": { "name": "tvfoodmaps", "key": "tvfoodmaps", "displayName": "Frank Apap", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-20T13:06:06.000+0000", "updated": "2012-05-20T13:06:06.000+0000" }, { "id": "195692", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Frank - can you please try it out with the master (2.1.0) build as we cannot reproduce this issue with the latest master build?", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-22T20:52:35.000+0000", "updated": "2012-05-22T20:52:35.000+0000" }, { "id": "414072", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T22:16:37.000+0000", "updated": "2017-03-20T22:16:37.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }