{ "id": "149730", "key": "TIMOB-19225", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-07-17T14:12:46.000+0000", "created": "2015-07-16T03:11:07.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [ { "id": "48413", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "149018", "key": "TIMOB-19057", "fields": { "summary": "Windows: Test Todo list sample", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-07-27T22:03:10.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "{{AlertDialog}} \"click\" callback fires wrong callback function. For example following code should print \"Callback from Push 1\" when you push Push1 button, and should print \"Callback from Push 2\" when you push Push2.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({layout:'vertical'});\r\n\r\nvar btn1 = Ti.UI.createButton({ title: 'Push 1' });\r\nbtn1.addEventListener('click', function (e) {\r\n var dialog = Ti.UI.createAlertDialog({\r\n message: 'Okay 1',\r\n title: 'Alert Dialog Test 1'\r\n });\r\n dialog.addEventListener('click', function (e) {\r\n Ti.API.info('Callback from Push 1');\r\n });\r\n dialog.show();\r\n});\r\nwin.add(btn1);\r\n\r\nvar btn2 = Ti.UI.createButton({ title: 'Push 2' });\r\nbtn2.addEventListener('click', function (e) {\r\n var dialog = Ti.UI.createAlertDialog({\r\n message: 'Okay 2',\r\n title: 'Alert Dialog Test 2'\r\n });\r\n dialog.addEventListener('click', function (e) {\r\n Ti.API.info('Callback from Push 2');\r\n });\r\n dialog.show();\r\n});\r\nwin.add(btn2);\r\n\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Windows: Wrong callback for AlertDialog", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 443, "state": "closed", "name": "2015 Sprint 14 Windows", "startDate": "2015-07-06T04:01:52.896Z", "endDate": "2015-07-19T03:59:00.000Z", "completeDate": "2015-07-20T22:18:14.505Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "357809", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/378", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-16T03:17:28.000+0000", "updated": "2015-07-16T03:17:28.000+0000" }, { "id": "358385", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio: 4.1.1.201507141126\r\nTi SDK: 4.2.0.v20150724170431\r\nTi CLI: 4.0.1\r\nAlloy: 1.6.2\r\nWindows: 8.1 Enterprise 64-bit\r\nAPPC NPM: 4.1.0\r\nAPPC CLI: 4.1.2\r\nDevice: Nokia Lumia 928 - Windows Phone 8.1\r\nWindows emulator : 8.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-27T22:03:04.000+0000", "updated": "2015-07-27T22:03:04.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }