Skip to content

Commit

Permalink
Added missing mouse events to FeatureGroup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtoye committed Jul 20, 2012
1 parent 1cfd763 commit f6979ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layer/FeatureGroup.js
Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit f6979ff

Please sign in to comment.