Skip to content

Commit bb4408e

Browse files
author
Per Liedman
committed
Indicate that _onZoomEnd is private
1 parent 3d3d0f4 commit bb4408e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/control.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
}
4646
},
4747

48-
onZoomEnd: function() {
48+
_onZoomEnd: function() {
4949
if (!this._selectedRoute ||
5050
!this._router.requiresMoreDetail) {
5151
return;
@@ -77,7 +77,7 @@
7777
this._map = map;
7878
this._map.addLayer(this._plan);
7979

80-
this._map.on('zoomend', this.onZoomEnd, this);
80+
this._map.on('zoomend', this._onZoomEnd, this);
8181

8282
if (this._plan.options.geocoder) {
8383
container.insertBefore(this._plan.createGeocoders(), container.firstChild);
@@ -87,7 +87,7 @@
8787
},
8888

8989
onRemove: function(map) {
90-
map.off('zoomend', this.onZoomEnd, this);
90+
map.off('zoomend', this._onZoomEnd, this);
9191
if (this._line) {
9292
map.removeLayer(this._line);
9393
}

0 commit comments

Comments
 (0)