don't clone places if its a function
This commit is contained in:
parent
d737817528
commit
c4591c3a0e
1 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ Ox.MapEditor = function(options, self) {
|
||||||
places: function() {
|
places: function() {
|
||||||
self.isAsync = Ox.isFunction(self.options.places);
|
self.isAsync = Ox.isFunction(self.options.places);
|
||||||
self.$list.options({
|
self.$list.options({
|
||||||
items: Ox.clone(self.options.places)
|
items: self.isAsync ? self.options.places : Ox.clone(self.options.places)
|
||||||
})
|
})
|
||||||
self.$map.options({
|
self.$map.options({
|
||||||
places: self.options.places
|
places: self.options.places
|
||||||
|
|
@ -337,7 +337,7 @@ Ox.MapEditor = function(options, self) {
|
||||||
columns: self.columns,
|
columns: self.columns,
|
||||||
columnsRemovable: true,
|
columnsRemovable: true,
|
||||||
columnsVisible: true,
|
columnsVisible: true,
|
||||||
items: Ox.clone(self.options.places),
|
items: self.isAsync ? self.options.places : Ox.clone(self.options.places),
|
||||||
//items: self.options.places,
|
//items: self.options.places,
|
||||||
// area needed for icon, geoname needed for flag
|
// area needed for icon, geoname needed for flag
|
||||||
keys: ['area', 'geoname', 'matches'],
|
keys: ['area', 'geoname', 'matches'],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue