Ox.Map: update signature of select event, update docs
This commit is contained in:
parent
d30cda0cfd
commit
ee23db5876
1 changed files with 4 additions and 4 deletions
|
@ -74,9 +74,9 @@ Ox.Map <f> Basic map object
|
||||||
lng <n> Longitude
|
lng <n> Longitude
|
||||||
types <[s]> Types (like "country" or "political")
|
types <[s]> Types (like "country" or "political")
|
||||||
load <!> load
|
load <!> load
|
||||||
select <!> select
|
select <!> Fires when a place has been selected or deselected
|
||||||
selectplace <!> Fires when a place has been selected or deselected
|
|
||||||
place <o> Place object
|
place <o> Place object
|
||||||
|
selectplace <!> Deprecated
|
||||||
togglecontrols <!> togglecontrols
|
togglecontrols <!> togglecontrols
|
||||||
togglelabels <!> togglelabels
|
togglelabels <!> togglelabels
|
||||||
@*/
|
@*/
|
||||||
|
@ -1226,8 +1226,8 @@ Ox.Map = function(options, self) {
|
||||||
self.options.selected = id;
|
self.options.selected = id;
|
||||||
setPlaceControls(place);
|
setPlaceControls(place);
|
||||||
setStatus();
|
setStatus();
|
||||||
that.triggerEvent('selectplace', place); // FIXME: DEPRECATED
|
that.triggerEvent('selectplace', place); // FIXME: deprecated, remove
|
||||||
that.triggerEvent('select', {place: place});
|
that.triggerEvent('select', place);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue