From 9af3ceb59d1e1e2e8c65b1ec490ea54e7b1c6384 Mon Sep 17 00:00:00 2001 From: Mithron Date: Fri, 22 Aug 2014 15:35:00 +0400 Subject: [PATCH] some code refactoring --- src/leaflet.locationlist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/leaflet.locationlist.js b/src/leaflet.locationlist.js index 7489f8f..b205cb8 100644 --- a/src/leaflet.locationlist.js +++ b/src/leaflet.locationlist.js @@ -52,7 +52,7 @@ L.Control.LocationList = L.Control.extend({ }, - _onListChange: function () { + _onListChange: function (e) { this._currentLocation_index = this._fullist.selectedIndex; @@ -69,7 +69,7 @@ L.Control.LocationList = L.Control.extend({ return option; }, - _update: function () { + _update: function (e) { // L.DomUtil.empty(this._fullist); add in 0.7.4 while (this._fullist.firstChild) { this._fullist.removeChild(this._fullist.firstChild);