{ "id": "141623", "key": "TIMOB-18209", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-12-16T01:38:34.000+0000", "created": "2014-12-16T01:06:46.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.5.0", "regression" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [ { "id": "44132", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "141451", "key": "TIMOB-18187", "fields": { "summary": "iOS: Ti.UI.Window Focus event is firing continuously. ", "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": "Critical", "id": "1" }, "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": "2017-03-20T22:20:57.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": "h5. This is a regression. The issue is not seen in 3.4.1.GA.\r\n\r\nh5.Description:\r\n1. Copy and past the code below in the app.js of your app.\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nwin.addEventListener('focus',function(e){\r\n\talert(\"focus event fired\");\r\n});\r\n\r\nwin.open();\r\n{code}\r\n2. Build & run on IOS device.\r\n3. Launch the app.\r\n4. After the app launches the window focus event is fired & we get an alert \"focus event fired\".\r\n5. Close the alert by clicking on the OK button.\r\n\r\nh5.Actual Result:\r\n1. You will see that the alert gets closed but immediately similar alert comes up with the same alert text. This happens infinitely.\r\n2. One more thing to note is if we have a INFO log statement instead of an alert then the INFO log is seen only once which is the proper behavior.\r\n\r\nh5.Expected Result:\r\n1. The alert should be seen only once when the window is opened & the focus event is fired. ", "attachment": [], "flagged": false, "summary": "iOS: Alert inside a window focus event listener pops up infinitely", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nAppc Studio : 3.4.1.201410281743\r\nTi SDK : 3.5.0.v20141215113314\r\nCLI : 3.4.1\r\nAlloy : 1.5.1 GA\r\nCode Processor : 1.1.1\r\nMAC Yosemite : 10.10\r\nIphone 5S - 8.0.2\r\nIpad 3 - 8.1\r\nXCode - Version 6.1.1", "comment": { "comments": [ { "id": "336492", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~emerriman] duplicate. Please reopen if you feel otherwise.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-16T01:38:34.000+0000", "updated": "2014-12-16T01:38:34.000+0000" }, { "id": "414088", "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:20:57.000+0000", "updated": "2017-03-20T22:20:57.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }