Ox.Map: update signature of select event, update docs

This commit is contained in:
rlx 2012-06-30 15:00:38 +00:00
parent d30cda0cfd
commit ee23db5876

View file

@ -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);
} }
}; };