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