TableView.setData
crashes when it is updated through
click
event. It does not cause issue when it is set at constructor parameter.
var win = Ti.UI.createWindow({layout:'vertical'});
var button = Ti.UI.createButton({title:'Add'});
var tableData = [{ title: 'Apples' }, { title: 'Bananas' }, { title: 'Carrots' }, { title: 'Potatoes' }];
var table = Ti.UI.createTableView({/* data:tableData */});
button.addEventListener('click', function () {
table.setData(tableData);
});
win.add(button);
win.add(table);
win.open();
https://github.com/appcelerator/titanium_mobile_windows/pull/330
Verified the fix. TableView.setData does not crash the app when its set in an eventlistener. Closing. Environment: Appc Studio: 4.1.0.201506261427 Ti SDK: 4.1.0.v20150629101857 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0-1 APPC CLI: 4.1.0-4 Device: Nokia Lumia 928 - Windows Phone 8.1 Windows emulator : 8.1