Skip to content

Commit 4ff6229

Browse files
committed
marker: Fix onRemove handler
this._map is nulled before removeIcon call Signed-off-by: Pavel Shramov <shramov@mexmat.net>
1 parent d15d20b commit 4ff6229

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/layer/marker/Marker.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ L.Marker = L.Class.extend({
2828
},
2929

3030
onRemove: function(map) {
31-
this._map = null;
32-
3331
this._removeIcon();
32+
this._map = null;
3433

3534
// TODO move to Marker.Popup.js
3635
if (this.closePopup) {

0 commit comments

Comments
 (0)