{ "id": "79000", "key": "TIMOB-4946", "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": "12093", "description": "", "name": "Sprint 2012-01", "archived": true, "released": true, "releaseDate": "2012-01-15" }, { "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" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-01T15:59:54.000+0000", "created": "2011-08-09T07:29:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_window", "parity", "qe-testadded" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [ { "id": "14450", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "84485", "key": "TIMOB-6997", "fields": { "summary": "iOS: Opening Windows with Navigationgroup show an error: [ERROR] Adding an event listener to a proxy that isn't already in the context", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-04T22:16:41.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": "To reproduce, add an event listener to a window titleControl. After two clicks, event stops firing. Reproduction code is attached. As an interesting side note, if you apply an animation to the tabGroup open method the application will crash without error on the 2nd click.\r\n\r\n{code:title=app.js|borderStyle=solid}\r\ntabGroup = Titanium.UI.createTabGroup();\r\n\r\nfunction createNavBarTitleControl() {\r\n\tvar view = Titanium.UI.createView({\r\n\t\tbackgroundColor: \"#FF0000\",\r\n\t\twidth: 65,\r\n\t\theight: 17\r\n\t});\r\n\t\r\n\treturn view;\r\n}\r\n\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor: \"#FFF\",\r\n\tbarColor: \"#111\",\r\n \turl: \"test.js\",\r\n\ttitleControl: createNavBarTitleControl(),\r\n\ttitle: \"Recents\"\r\n});\r\n\r\nvar tab = Titanium.UI.createTab({ \r\n title: \"Recents\",\r\n window: win,\r\n hasChild: true\r\n});\r\n\r\ntabGroup.addTab(tab);\r\ntabGroup.setActiveTab(0);\r\ntabGroup.open({\r\n\ttransition: Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT\r\n});\r\n{code}\r\n\r\n{code:title=test.js|borderStyle=solid}\r\nfunction addEventListenerToTitleControl() {\r\n\tvar win = Titanium.UI.currentWindow;\r\n\r\n\twin.titleControl.addEventListener(\"click\", function(eventObject) {\r\n\t\talert(\"Click Registered\");\r\n\t});\r\n}\r\n\r\naddEventListenerToTitleControl();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Window titleControl click events get lost", "creator": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "environment": "Product: Mobile\r\nTitanium SDK: Mobile 1.7.2\r\nPlatform OS: iOS\r\nPlatform OS Version: 4", "comment": { "comments": [ { "id": "162216", "author": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "body": "As a note, if you add the event listener to the titleControl BEFORE you add it to the window, it works. It only crashes / loses events if you try to add the event listener to window.titleControl after it's been added.\r\n\r\nThis problem is also occurring for other items in the navigation bar, e.g., the rightNavButton.", "updateAuthor": { "name": "matthewcongrove", "key": "matthewcongrove", "displayName": "Matthew Congrove", "active": true, "timeZone": "America/Chicago" }, "created": "2011-08-09T07:38:33.000+0000", "updated": "2011-08-09T07:38:33.000+0000" }, { "id": "167382", "author": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've noticed the same thing in 1.7.2. My workaround was to recreate the title control each time it was clicked, which is very ugly but seems to work.", "updateAuthor": { "name": "pegli", "key": "pegli", "displayName": "Paul Mietz Egli", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-29T16:06:55.000+0000", "updated": "2011-09-29T16:06:55.000+0000" }, { "id": "178174", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending 1131", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T12:38:56.000+0000", "updated": "2012-01-05T12:38:56.000+0000" }, { "id": "179115", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still can repro with 1.9.0.v20120112104633, after the first 2 click you have to click multiple times to see the alert again", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-12T13:35:07.000+0000", "updated": "2012-01-12T13:35:07.000+0000" }, { "id": "179124", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.9.0.v20120112104633, need to make the red box bigger, before porting, make it bigger so the hit space is easier to get to", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-12T14:36:11.000+0000", "updated": "2012-01-12T14:36:11.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }