File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ export var AnnounceMovement = L.Handler.extend({
5
5
layerremove : this . totalBounds
6
6
} ) ;
7
7
8
- this . _map . on ( 'map-moveend' , this . announceBounds ) ;
8
+ this . _map . options . mapEl . addEventListener (
9
+ 'map-moveend' ,
10
+ this . announceBounds
11
+ ) ;
9
12
this . _map . dragging . _draggable . addEventListener ( 'dragstart' , this . dragged ) ;
10
13
this . _map . options . mapEl . addEventListener (
11
14
'mapfocused' ,
@@ -18,7 +21,10 @@ export var AnnounceMovement = L.Handler.extend({
18
21
layerremove : this . totalBounds
19
22
} ) ;
20
23
21
- this . _map . off ( 'map-moveend' , this . announceBounds ) ;
24
+ this . _map . options . mapEl . removeEventListener (
25
+ 'map-moveend' ,
26
+ this . announceBounds
27
+ ) ;
22
28
this . _map . dragging . _draggable . removeEventListener (
23
29
'dragstart' ,
24
30
this . dragged
You can’t perform that action at this time.
0 commit comments