Пример #1
0
function deleteCity(e) {
	Ti.API.warn('delete City');
	Ti.API.warn(JSON.stringify(e.source, null, 2));
	locationManager.deleteCity(e.source);
	removeAllListViews();
	showData();
}
Пример #2
0
	function deleteCity(e) {
		Ti.API.warn('delete City');
		Ti.API.warn(JSON.stringify(e.source.data, null, 2));
		locationManager.deleteCity(e.source.data);
		var len = $.locationsListView.children.length;
		for (var i = len - 1; i >= 0; i--) {
			$.locationsListView.remove($.locationsListView.children[i]);
		};
		showData();
	}