{ "id": "99388", "key": "TIMOB-10487", "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": "2017-06-26T22:01:32.000+0000", "created": "2012-08-17T16:35:37.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "qe-mw082012" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:23.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": "Under certain conditions, tableView deleteRow fails with Uncaught TypeError: Cannot read property 'section' of undefined.\r\n\r\nThis is not a regression. This does not occur in iOS or Android.\r\n\r\nTest project attached.\r\n\r\nDebug Source:\r\n\r\n{code}\r\n\t\t_removeRow: function(index) {\r\n\t\t\tvar location = this._calculateLocation(index);\r\n\t\t\tthis._unpublish(location.section._rows._children[2 * location.localIndex + 1]);\r\nUncaught TypeError: Cannot read property 'section' of undefined\r\n\t\t\tif (location) {\r\n\t\t\t\tlocation.section._removeAt(location.localIndex);\r\n\t\t\t}\r\n\t\t},\r\n{code}\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run attached project.\r\n2. Click Returns.\r\n3. Wait for ACS query.\r\n4. Click top row.\r\n\r\nActual Result:\r\n\r\nRuntime Error.\r\n\r\nExpected Result:\r\n\r\nTop row should be removed from top TableView and added to bottom TableView.\r\n\r\nNote: This does not occur using simplified code:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'white'\r\n});\r\n \r\nvar table1 = Ti.UI.createTableView({\r\n top : 0,\r\n left : 0,\r\n width : '100%',\r\n height : '50%'\r\n});\r\n \r\nvar row = Ti.UI.createTableViewRow({\r\n title : 'click top row, then bottom row'\r\n});\r\n \r\ntable1.appendRow(row);\r\n \r\nvar table2 = Ti.UI.createTableView({\r\n bottom : 0,\r\n left : 0,\r\n width : '100%',\r\n height : '50%'\r\n});\r\n \r\nwin.add(table1);\r\nwin.add(table2);\r\n \r\ntable1.addEventListener('click', function(e) {\r\n table1.deleteRow(e.index);\r\n table2.appendRow(e.row);\r\n});\r\n \r\nwin.open();\r\n{code}", "attachment": [ { "id": "30574", "filename": "InventoryApp.zip", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-17T16:35:37.000+0000", "size": 3127771, "mimeType": "application/zip" } ], "flagged": false, "summary": "MobileWeb: tableView deleteRow Uncaught TypeError: Cannot read property 'section' 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.0.2, 2.1.1, 2.1.2.v20120815081613\r\nOS: Mountain Lion\r\nBrowsers Tested: Chrome 21.0.1180.75", "comment": { "comments": [ { "id": "422849", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving as \"Won't Fix\" as MobileWeb has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T22:01:32.000+0000", "updated": "2017-06-26T22:01:32.000+0000" }, { "id": "436351", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:23.000+0000", "updated": "2018-04-04T23:20:23.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }