Skip to content

Commit 2311ad6

Browse files
jamesdhuttonjamesdhutton
authored andcommitted
Now unbinds map click correctly
Update to performance issue fix
1 parent 9539575 commit 2311ad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/leaflet.plotter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ L.Polyline.plotter = L.Polyline.extend({
5858
this._map.on('click', this._onMapClick, this);
5959
},
6060
_unbindMapClick: function(){
61-
this._map.off('click', this._addNewMarker, this);
61+
this._map.off('click', this._onMapClick, this);
6262
},
6363
_setExistingLatLngs: function(latlngs){
6464
this._existingLatLngs = latlngs;

0 commit comments

Comments
 (0)