fix setting place to null
This commit is contained in:
parent
7601eeb28a
commit
9b5bb2cd06
1 changed files with 1 additions and 1 deletions
|
@ -1041,7 +1041,7 @@ Ox.MapEditor = function(options, self) {
|
|||
var isResult = place && place.id[0] == '_',
|
||||
isUndefined = !!self.options.selected
|
||||
&& !self.$list.value(self.options.selected, 'type');
|
||||
self.selectedPlace = place.id || '';
|
||||
self.selectedPlace = place && place.id ? place.id : '';
|
||||
if (isResult && isUndefined) {
|
||||
Ox.print('place.id', place.id, 'self.options.selected', self.options.selected, 'type', self.$list.value(self.options.selected));
|
||||
// define undefined place
|
||||
|
|
Loading…
Reference in a new issue