1
0
Fork 0
forked from 0x2620/oxjs

properly remove markers when removing a place

This commit is contained in:
rolux 2011-05-24 18:46:46 +02:00
commit ca905a54bb
2 changed files with 6 additions and 4 deletions

View file

@ -828,6 +828,7 @@ Ox.Map = function(options, self) {
self.options.selected = place.id;
//Ox.print('removePlace', Ox.getObjectById(self.places, place.id))
self.places.splice(Ox.getPositionById(self.places, place.id), 1);
self.resultPlace && self.resultPlace.remove();
self.resultPlace = place;
place.marker.update();
}