{ "id": "84911", "key": "TIMOB-7200", "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:47:12.000+0000", "created": "2012-01-16T04:30:35.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "regression" ], "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": "14564", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "63771", "key": "TIMOB-3139", "fields": { "summary": "Android: UI.Window - Window in tabgroup focus event does not fire", "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 } } } }, { "id": "14587", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "84995", "key": "TIMOB-7229", "fields": { "summary": "iOS: UI.Window - open and focus events not fired when open method before eventlisteners", "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 } } } }, { "id": "14567", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "84105", "key": "TIDOC-74", "fields": { "summary": "APIDOC: UI view size property should be documented as the rendered view size and as read-only", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:10:11.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Problem\r\n\r\nWindow open event does not fire for lightweight windows when window open() method positioned before {{addEventListener}}\r\n\r\nThe open event works as expected in 1.7.5. Hence this is a regression.\r\n\r\nNote that the focus event also suffers the same issue.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n // fullscreen:false, // enable this to workaround the issue\r\n backgroundColor:'red'\r\n});\r\n\r\nwin.open(); // move this after eventListeners to workaround isssue\r\n\r\nwin.addEventListener('open', function() {\r\n Ti.API.info(\"------- Window event fired: open --------\");\r\n});\r\n\r\nwin.addEventListener('focus', function() {\r\n Ti.API.info(\"------- Window event fired: focus --------\");\r\n});\r\n{code}\r\n\r\nh2. Logs\r\n\r\nNo output produced\r\n\r\nh2. Workaround\r\n\r\nUse heavyweight window or ensure that window open() method is positioned after eventListeners\r\n", "attachment": [], "flagged": false, "summary": "Android: UI.window - open event does not fire for lightweight windows when window open method is after addEventListener", "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* Rhino & v8\r\n* Google APIs Android 2.2\r\n* emulator\r\n* Ubuntu 10.04\r\n* Studio 1.0.8.201201091758", "comment": { "comments": [ { "id": "179477", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2012-01-16T15:37:55.000+0000", "updated": "2012-01-16T15:37:55.000+0000" }, { "id": "179482", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "I have double-checked this with {{Titanium 1.9.0 (2012/01/16 11:16 366b32d)}} and the issue still exists.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-16T15:52:51.000+0000", "updated": "2012-01-16T15:52:51.000+0000" }, { "id": "179496", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "After speaking with Opie, the fact that this worked on 1.7.5 may have simply been a race condition that we never saw due to rhino's lower performance.\r\n\r\nopen and focus eventlisteners should go before the window open method. I will raise an apidoc ticket to convey this advice.\r\n\r\nHence, closing as invalid", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-16T16:45:53.000+0000", "updated": "2012-01-16T16:51:10.000+0000" }, { "id": "179536", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-01-17T01:14:32.000+0000", "updated": "2012-01-17T01:14:32.000+0000" }, { "id": "414416", "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-21T21:10:11.000+0000", "updated": "2017-03-21T21:10:11.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }