Skip to content

Commit 11396f0

Browse files
simon04perliedman
authored andcommitted
Fix this.options.geocoder[mode] is not a function (#184)
1 parent 7fae9a0 commit 11396f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/control.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ export default {
8787
this._expand();
8888
if (L.Browser.touch) {
8989
L.DomEvent.addListener(container, 'touchstart', function(e) {
90-
this._geocode(e);
90+
this._geocode();
9191
}, this);
9292
}
9393
else {
9494
L.DomEvent.addListener(container, 'click', function(e) {
95-
this._geocode(e);
95+
this._geocode();
9696
}, this);
9797
}
9898
}

0 commit comments

Comments
 (0)