{ "id": "99269", "key": "TIMOB-10456", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-08-15T23:24:15.000+0000", "created": "2012-08-15T14:18:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-mw082012", "regression" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [ { "id": "19945", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "99267", "key": "TIMOB-10455", "fields": { "summary": "iOS: tableView row events on deleted row cause crash EXC_CRASH (SIGABRT)", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "19944", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "87952", "key": "TIMOB-8004", "fields": { "summary": "MobileWeb: Ti.UI.TableView row data is undefined in click event", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-25T19:03:18.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "tableView removeRow on a row that was automatically removed from another TableView by appending it to the first tableView causes type error\r\n\r\nthis is a regression, this does not occur in SDK 2.0.2\r\n\r\nthis does not occur on android, which behaves correctly\r\nthis crashes ios in a related issue\r\n\r\nlog: Uncaught TypeError: Cannot read property '_parent' of undefined\r\n\r\nnote: when appendRow is called on a shared row in android or ios, the row is not automatically deleted from the first tableView, which is a parity issue in addition to the underlying error\r\n\r\ntest steps:\r\n\r\n1. run code:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nvar table1 = Ti.UI.createTableView({\r\n\ttop : 0,\r\n\tleft : 0,\r\n\twidth : '100%',\r\n\theight : '50%'\r\n});\r\n\r\nvar row = Ti.UI.createTableViewRow({\r\n\ttitle : 'click top row, then bottom row'\r\n});\r\n\r\ntable1.appendRow(row);\r\n\r\nvar table2 = Ti.UI.createTableView({\r\n\tbottom : 0,\r\n\tleft : 0,\r\n\twidth : '100%',\r\n\theight : '50%'\r\n});\r\n\r\nwin.add(table1);\r\nwin.add(table2);\r\n\r\ntable1.addEventListener('click', function(e) {\r\n\ttable2.appendRow(e.row);\r\n\ttable1.deleteRow(e.index); // uncaught error\r\n});\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: tableView deleteRow on deleted row causes Uncaught TypeError: Cannot read property '_parent' of undefined", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.1\r\nTitanium SDK: 2.1.0, 2.1.1, 2.1.2.v20120815081613\r\nOS: Mountain Lion\r\nBrowsers Tested: Chrome 21.0.1180.75, Firefox 14.0.1", "comment": { "comments": [ { "id": "214735", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Views cannot be added to more than one parent view at a time. Such behavior is undefined. The deleteRow needs to be called *before* the row is added to the second tableview.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-15T23:24:15.000+0000", "updated": "2012-08-15T23:24:15.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }