Skip to content

Commit

Permalink
Indicate that _onZoomEnd is private
Browse files Browse the repository at this point in the history
  • Loading branch information
Per Liedman committed Nov 11, 2016
1 parent 3d3d0f4 commit bb4408e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
}
},

onZoomEnd: function() {
_onZoomEnd: function() {
if (!this._selectedRoute ||
!this._router.requiresMoreDetail) {
return;
Expand Down Expand Up @@ -77,7 +77,7 @@
this._map = map;
this._map.addLayer(this._plan);

this._map.on('zoomend', this.onZoomEnd, this);
this._map.on('zoomend', this._onZoomEnd, this);

if (this._plan.options.geocoder) {
container.insertBefore(this._plan.createGeocoders(), container.firstChild);
Expand All @@ -87,7 +87,7 @@
},

onRemove: function(map) {
map.off('zoomend', this.onZoomEnd, this);
map.off('zoomend', this._onZoomEnd, this);
if (this._line) {
map.removeLayer(this._line);
}
Expand Down

0 comments on commit bb4408e

Please sign in to comment.