{ "id": "88076", "key": "TIMOB-8055", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-17T16:22:44.000+0000", "created": "2012-03-16T11:51:53.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "\"qe-mw020912\"" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-03T23:59:02.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": "Steps to reproduce:\r\n\r\n1. Create a default app and change the app.js code to the following:\r\n{code}\r\nvar _window = Titanium.UI.createWindow({\r\n\t\t\ttitle : 'test',\r\n\t\t\tbackgroundColor : 'white'\r\n\t\t});\r\n\r\nvar myTableView = Ti.UI.createTableView();\r\n\r\n\t\tvar row = Ti.UI.createTableViewRow({\r\n\t\t\theight : 80,\r\n\t\t\tbackgroundColor : '#c00',\r\n\t\t});\r\n\r\n\t\tmyTableView.appendRow(row);\r\n\r\n\t\t_window.add(myTableView);\r\n\r\n\t\t_window.addEventListener('open', function() {\r\n\t\t\tsetTimeout(function() {\r\n\t\t\t\tTi.API.debug(JSON.stringify(myTableView));\r\n\t\t\t\tvar tableRows = myTableView.data[0].rows;\r\n\t\t\t\tTi.API.debug(JSON.stringify(tableRows));\r\n\t\t\t\ttableRows.pop();\r\n\t\t\t\tmyTableView.data = tableRows;\r\n\t\t\t}, 2000);\r\n\t\t\t// two seconds after the window opens, remove the red row\r\n\t\t});\r\n_window.open();\r\n{code}\r\n\r\n2. Run the app\r\n\r\nActual result:\r\nThe table view still contains the row being removed\r\n\r\nExpected result:\r\nThe table view updates with the new (empty) data", "attachment": [], "flagged": false, "summary": "MobileWeb: TableViewRow - Creating a table view then removing its data doesn't update the table view", "creator": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Ti Studio build 2.0.0.201203152033\r\nTi Mob SDK 2.0.0.v20120316074737 hash r5aa535ab\r\nOSX Lion 10.7.3\r\niPad 1 OS 4.3.5, Galaxy Tab 10.1 OS 3.0", "comment": { "comments": [ { "id": "186949", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Note: you can't stringify myTableView because you create what's called a circular reference. TableView refers to TableViewSection, which refers to TableView, etc.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-17T13:42:47.000+0000", "updated": "2012-03-17T13:42:47.000+0000" }, { "id": "186950", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1723", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-17T13:54:21.000+0000", "updated": "2012-03-17T13:54:21.000+0000" }, { "id": "409156", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as MobileWeb is no longer supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T23:59:02.000+0000", "updated": "2017-03-03T23:59:02.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }