Skip to content

Commit 7bc67ab

Browse files
committed
Turn off other callbacks when DrawControl removed from Map
1 parent 0cdce5d commit 7bc67ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

js/src/controls/DrawControl.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ export class LeafletDrawControlView extends control.LeafletControlView {
127127
this.map_view.obj.off('draw:created');
128128
this.map_view.obj.off('draw:edited');
129129
this.map_view.obj.off('draw:deleted');
130+
this.model.off('msg:custom');
131+
this.model.off('change:data');
130132
}
131133

132134
data_to_layers() {

0 commit comments

Comments
 (0)