{ "id": "64817", "key": "TIMOB-3743", "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": "11330", "description": "Planning Week", "name": "Sprint 2011-21", "archived": true, "released": true, "releaseDate": "2011-05-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-25T16:27:35.000+0000", "created": "2011-04-26T12:14:27.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "rplist", "tableview", "window" ], "versions": [ { "id": "11260", "description": "", "name": "Release 1.6.2", "archived": true, "released": true, "releaseDate": "2011-04-20" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-05-25T16:27:35.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": "If you close a window that contains a tableView, the tableView data will be destroyed, but the table is still intact.\n\nStep 1: run the example below\nStep 2: click the test button\nStep 3: notice the [object TiUITableViewSection] alert\nStep 4: click the open button\nStep 5: click the close button\nStep 6: click the test button\nStep 7: notice the TiUITableViewSection does not exist\n\n{code:javascript}\nvar win1 = Ti.UI.createWindow({\n\tbackgroundColor: 'green'\n});\n\nvar data = [{title:\"Row 1\"},{title:\"Row 2\"}];\nvar table = Titanium.UI.createTableView({data:data});\n\nvar openButton = Ti.UI.createButton({\n\ttitle: 'Open',\n\theight: 50,\n\twidth: 200,\n});\nopenButton.addEventListener('click', function(e){\n\tvar win2 = Ti.UI.createWindow({\n\t\tbackgroundColor: 'blue'\n\t});\n\n\twin2.add(table);\n\t\n\tvar closeButton = Ti.UI.createButton({\n\t\ttitle: 'Close',\n\t\theight: 50,\n\t\twidth: 200,\n\t\tbottom: 70\n\t});\n\tcloseButton.addEventListener('click', function(e){\n\t\twin2.close();\n\t});\n\twin2.add(closeButton);\n\t\n\twin2.open();\n});\n\nvar testButton = Ti.UI.createButton({\n\ttitle: 'Test',\n\theight: 50,\n\twidth: 200,\n\tbottom: 10\n});\ntestButton.addEventListener('click', function(e){\n\talert(table.data[0]);\n\t// alert(table);\n});\nwin1.add(testButton);\nwin1.add(openButton);\nwin1.open();\n{code}\n\nh3. Associated Helpdesk Ticket\nhttp://appc.me/c/IBS-79527-881", "attachment": [], "flagged": false, "summary": "iOS: Closing a window containing a tableView causes the tableView data to be destroyed", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 1.6.2, iOS 4.3", "comment": { "comments": [ { "id": "134204", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Time added elsewhere. See related bugs TIMOB-4196 and TIMOB-4062", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-24T17:10:31.000+0000", "updated": "2011-05-24T17:10:31.000+0000" }, { "id": "134296", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.7.0.294b6aa...", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-25T16:27:35.000+0000", "updated": "2011-05-25T16:27:35.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }