Ox.Map: trigger select event if, after updating the items option, the previously selected item is no longer present

This commit is contained in:
rolux 2012-09-01 11:52:26 +02:00
parent 39708edd8b
commit dfffe99a04

View file

@ -149,6 +149,7 @@ Ox.Map = function(options, self) {
selectPlace(self.options.selected); selectPlace(self.options.selected);
} else { } else {
self.options.selected = ''; self.options.selected = '';
that.triggerEvent('select', null);
} }
} }
}, },