Merge pull request #816 from jacobtoye/FeatureGroupMouseEvents

Added missing mouse events to FeatureGroup.
This commit is contained in:
Vladimir Agafonkin 2012-07-19 23:44:49 -07:00
commit 0d7ab0a9a8

View File

@ -10,7 +10,7 @@ L.FeatureGroup = L.LayerGroup.extend({
return this;
}
layer.on('click dblclick mouseover mouseout', this._propagateEvent, this);
layer.on('click dblclick mouseover mouseout mousemove contextmenu', this._propagateEvent, this);
L.LayerGroup.prototype.addLayer.call(this, layer);
@ -22,7 +22,7 @@ L.FeatureGroup = L.LayerGroup.extend({
},
removeLayer: function (layer) {
layer.off('click dblclick mouseover mouseout', this._propagateEvent, this);
layer.off('click dblclick mouseover mouseout mousemove contextmenu', this._propagateEvent, this);
L.LayerGroup.prototype.removeLayer.call(this, layer);