{ "id": "87988", "key": "TIMOB-8027", "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": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-19T14:48:12.000+0000", "created": "2012-03-14T21:58:36.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_window", "qe-testadded" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-02T09:14:53.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": "Actual Behavior: Two windows win1 and win2 are added to create a Navigation group. The app when launched, the open event listener on win1 is fired thrice. Also when you go to new nav window win2, win1 is again fired.\r\n\r\nExpected Behavior: Open event on window 1, should be fired only once.\r\n\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar win = Titanium.UI.createWindow();\r\nvar win1 = Titanium.UI.createWindow({\r\n backgroundColor:\"red\",\r\n title:\"Red Window\"\r\n});\r\n\r\nwin1.addEventListener('open', function(e) {\r\n alert('win1');\r\n});\r\n\r\nvar nav = Titanium.UI.iPhone.createNavigationGroup({\r\n window: win1\r\n});\r\nwin.add(nav);\r\nwin.open();\r\nvar win2 = Titanium.UI.createWindow({\r\n backgroundColor:\"blue\",\r\n title:\"Blue Window\"\r\n});\r\n\r\nwin2.addEventListener('open', function(e) {\r\n alert('win2');\r\n});\r\n\r\nnav.open(win2,{animated:true});\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Window open event is fired three times, when using with navigation group.", "creator": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dgandhi", "key": "dgandhi", "displayName": "Devang Gandhi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio SDK:1.8.1, 1.8.2, Master (March 14)\r\niOS: 5.0", "comment": { "comments": [ { "id": "186895", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/1714", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-16T14:55:39.000+0000", "updated": "2012-03-16T14:55:39.000+0000" }, { "id": "187095", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.0.0.201203182248\r\nTi Mob SDK 2.0.0.v20120319003254 hash r60b6da4c\r\nOSX Lion 10.7.3\r\niPhone 4 OS 5.0.1\r\n\r\nVerified that only one open event is being fired\r\n", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-19T10:22:41.000+0000", "updated": "2012-03-19T10:22:41.000+0000" }, { "id": "191918", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-19T14:47:59.000+0000", "updated": "2012-04-19T14:47:59.000+0000" }, { "id": "209583", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T09:53:07.000+0000", "updated": "2012-07-26T09:53:07.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }