{ "id": "148892", "key": "TIMOB-19037", "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": [ { "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" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-06-24T14:02:50.000+0000", "created": "2015-06-17T21:38:59.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-4.1.0" ], "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": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-06-26T01:38:25.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": "h5.Description\r\n\r\nWhen using a tableview, if on click a tableview opens a window the windows will not open again until another row is clicked, for example considering the following code, if I tap on the row 'Apples' a window will open, when I close that window it will not open again until I tap another row\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor:'black'});\r\n \r\nvar tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ]\r\n \r\nvar table = Ti.UI.createTableView({\r\n data: tableData\r\n});\r\n \r\ntable.addEventListener('click', function(e){\r\n\r\n var win2 = Ti.UI.createWindow({backgroundColor:'red'});\r\n var lbl = Ti.UI.createLabel({\r\n text: 'HELLO!',\r\n color:'black',\r\n width: 'auto',\r\n height: 'auto'\r\n });\r\n win2.add(lbl);\r\n\r\n lbl.addEventListener('click',function(){\r\n win2.close();\r\n });\r\n win2.open();\r\n\r\n});\r\n \r\nwin.add(table);\r\nwin.open();\r\n{code}\r\n\r\nh5.Steps To Reproduce\r\n\r\n1. Replace the attached app.js with the above code\r\n2. Build to a device or emulator\r\n3. Tap on Apples\r\n4. Tap on the 'HELLO' label to close the window\r\n5. Tap on Apples again\r\n6. Tap on Potatoes\r\n7. Tap on the 'HELLO' label to close the window\r\n8. Tap on Apples\r\n\r\nh5.Actual Result\r\n\r\n3. A window will open\r\n5. The window will not open\r\n6. A window will open\r\n8. A window will open\r\n\r\nh5.Expected Result\r\n\r\nA window should open every time I tap the tableview", "attachment": [], "flagged": false, "summary": "Windows: Reopening a window from a tableview does not work until another window is opened", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Windows 8.1\r\nTi CLI: 4.1.0-dev\r\nTi SDK: 4.1.0.v20150616225249\r\nLumia 928: 8.1\r\nWindows Phone emulator 8-1-1", "closedSprints": [ { "id": 436, "state": "closed", "name": "2015 Sprint 13 Windows", "startDate": "2015-06-20T23:02:43.965Z", "endDate": "2015-07-04T23:02:00.000Z", "completeDate": "2015-07-06T14:03:22.174Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "355831", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_windows/pull/318", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-24T00:52:55.000+0000", "updated": "2015-06-24T00:52:55.000+0000" }, { "id": "356018", "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.0.201506251044\r\nTi SDK: 4.1.0.v20150625131457\r\nTi CLI: 4.0.1\r\nAlloy: 1.6.2\r\nWindows: 8.1 Enterprise 64-bit\r\nAPPC NPM: 4.1.0-1\r\nAPPC CLI: 4.1.0-3 \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-06-26T01:38:15.000+0000", "updated": "2015-06-26T01:38:15.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }