Skip to content

Commit

Permalink
Fixes the moveend event removal
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeAmat committed Mar 26, 2016
1 parent ea984e5 commit 93dae65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/OverPassLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@
this._requestInProgress = false;
this._zoomControl._removeLayer(this);

map.off('moveend', this.onMoveEnd, this);
map.off('moveend', this._prepareRequest, this);

this._map = null;
},
Expand Down
2 changes: 1 addition & 1 deletion dist/OverPassLayer.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/OverPassLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@
this._requestInProgress = false;
this._zoomControl._removeLayer(this);

map.off('moveend', this.onMoveEnd, this);
map.off('moveend', this._prepareRequest, this);

this._map = null;
},
Expand Down

0 comments on commit 93dae65

Please sign in to comment.