cities example: fix place deselect (data is now null, not {})

This commit is contained in:
rlx 2014-09-26 15:07:44 +02:00
parent cbc888584d
commit 4138e4e558

View file

@ -538,7 +538,7 @@ Ox.load({UI: {showScreen: true}, Geo: {}}, function() {
will cause a deselect, which is what we want here.)
*/
select: function(data) {
$list.options({selected: data.id ? [data.id] : []});
$list.options({selected: data ? [data.id] : []});
}
}),
/*