Skip to content

Commit

Permalink
Reference _collapsed and _expand
Browse files Browse the repository at this point in the history
  • Loading branch information
newmanw committed Jul 5, 2018
1 parent 9bc6e2e commit 80a40be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/leaflet.groupedlayercontrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ L.Control.GroupedLayers = L.Control.extend({
var form = this._form = L.DomUtil.create('form', className + '-list');

if (collapsed) {
this._map.on('click', this.collapse, this);
this._map.on('click', this._collapse, this);

if (!L.Browser.android) {
L.DomEvent.on(container, {
mouseenter: this.expand,
mouseleave: this.collapse
mouseenter: this._expand,
mouseleave: this._collapse
}, this);
}
}
Expand Down

0 comments on commit 80a40be

Please sign in to comment.