{ "id": "88544", "key": "TIMOB-8213", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-08-01T21:05:14.000+0000", "created": "2012-03-22T17:47:31.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-and031912" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T17:25:40.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": "Alerts are getting dismissed with the window.(test cases: Titanium.UI.Window - 4947)\r\n\r\nSteps to reproduce:\r\n1. Run app.\r\n2. Press the 'Press me!' button.\r\n3. Press the 'Press me!' button.\r\n4. Check ddms or logcat for output\r\nExpected results:\r\n3: An alert should show \"Close event fired\" \r\n4: Console output should show \"Close event fired\"\r\nActual:\r\nAlert is not being shown. \r\n\r\nApp.js\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'black'\r\n});\r\n\r\nvar button1 = Ti.UI.createButton({\r\n\twidth : 150,\r\n\theight : 150,\r\n\ttitle : 'press me!'\r\n});\r\n\r\nbutton1.addEventListener('click', function() {\r\n\r\n\tvar win1 = Ti.UI.createWindow({\r\n\t\tmodal : true,\r\n\t\tbackgroundColor : '#fff'\r\n\t});\r\n\r\n\twin1.addEventListener('close', function() {\r\n\t\talert('Close event fired');\r\n\t});\r\n\tvar button2 = Ti.UI.createButton({\r\n\t\twidth : 150,\r\n\t\theight : 150,\r\n\t\ttitle : 'Press me!'\r\n\t});\r\n\r\n\tbutton2.addEventListener('click', function() {\r\n\t\twin1.close();\r\n\t});\r\n\r\n\twin1.open();\r\n\r\n\twin1.add(button2);\r\n});\r\nwin.add(button1);\r\nwin.open();\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Titanium.UI.Window - v8 and Rhino :Alerts are getting dismissed with the window.", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK version: 2.0.0.v20120322084826\r\nJavascript Engine: V8 and Rhino\r\nPlatform & version: Android 2.3.3\r\nDevice Details: Android emulator and Android Nexus S.\r\nHost Operating System: OSX 10.7.2\r\nTitanium Studio version: 2.0.0.201203211914", "comment": { "comments": [ { "id": "414792", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix and with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T17:25:40.000+0000", "updated": "2017-03-22T17:25:40.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }