{ "id": "84995", "key": "TIMOB-7229", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-01-16T16:50:44.000+0000", "created": "2012-01-16T15:09:26.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "14587", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "84911", "key": "TIMOB-7200", "fields": { "summary": "Android: UI.window - open event does not fire for lightweight windows when window open method is after addEventListener", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:20:12.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": "h2. Problem\r\n\r\nNeither window open or focus events are fired.\r\n\r\nNote that both work on Android, albeit with bugs (that can be worked around). See linked ticket, and its linked tickets.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'red'\r\n});\r\nwin.open();\r\n\r\nwin.addEventListener('open', function() {\r\nTi.API.info('------- Window open event fired ------');\r\n});\r\n\r\nwin.addEventListener('focus', function() {\r\nTi.API.info('------- Window focus event fired ------');\r\n});\r\n{code}\r\n\r\nh2. Logs\r\n\r\nNothing output to the logs.\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: UI.Window - open and focus events not fired when open method before eventlisteners", "creator": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": "* Titanium Mobile 1.8.0.1\r\n* iOS 5", "comment": { "comments": [ { "id": "179498", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "open and focus eventlisteners should go before the open method. I will raise an apidoc ticket to convey this advice. Hence, closing as invalid", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-16T16:49:15.000+0000", "updated": "2012-01-16T16:50:32.000+0000" }, { "id": "410988", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:20:12.000+0000", "updated": "2017-03-09T23:20:12.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }