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
|
||||
types <[s]> Types (like "country" or "political")
|
||||
load <!> load
|
||||
select <!> select
|
||||
selectplace <!> Fires when a place has been selected or deselected
|
||||
select <!> Fires when a place has been selected or deselected
|
||||
place <o> Place object
|
||||
selectplace <!> Deprecated
|
||||
togglecontrols <!> togglecontrols
|
||||
togglelabels <!> togglelabels
|
||||
@*/
|
||||
|
@ -1226,8 +1226,8 @@ Ox.Map = function(options, self) {
|
|||
self.options.selected = id;
|
||||
setPlaceControls(place);
|
||||
setStatus();
|
||||
that.triggerEvent('selectplace', place); // FIXME: DEPRECATED
|
||||
that.triggerEvent('select', {place: place});
|
||||
that.triggerEvent('selectplace', place); // FIXME: deprecated, remove
|
||||
that.triggerEvent('select', place);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue