diff --git a/source/Ox.UI/js/Map/Ox.ListMap.js b/source/Ox.UI/js/Map/Ox.ListMap.js index b9b9f2c5..3004b6e0 100644 --- a/source/Ox.UI/js/Map/Ox.ListMap.js +++ b/source/Ox.UI/js/Map/Ox.ListMap.js @@ -411,7 +411,7 @@ Ox.ListMap = function(options, self) { place.countryCode = country ? country.code : ''; self.selectedPlace = self.selectedPlace.substr(1); // fixme: safe? place.id = self.selectedPlace; - if (Ox.isArray(self.options.place)) { + if (Ox.isArray(self.options.places)) { self.options.places.push(place); self.$list.options({ items: Ox.clone(self.options.places), @@ -424,7 +424,7 @@ Ox.ListMap = function(options, self) { that.triggerEvent('addplace', {place: place}); } else if (title == 'Remove Place') { var index = Ox.getPositionById(self.options.places, self.selectedPlace); - if (Ox.isArray(self.options.place)) { + if (Ox.isArray(self.options.places)) { self.options.places.splice(index, 1); self.$list.options({items: Ox.clone(self.options.places)}); setStatus();