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({
55 layerremove : this . totalBounds
66 } ) ;
77
8- this . _map . on ( 'map-moveend' , this . announceBounds ) ;
8+ this . _map . options . mapEl . addEventListener (
9+ 'map-moveend' ,
10+ this . announceBounds
11+ ) ;
912 this . _map . dragging . _draggable . addEventListener ( 'dragstart' , this . dragged ) ;
1013 this . _map . options . mapEl . addEventListener (
1114 'mapfocused' ,
@@ -18,7 +21,10 @@ export var AnnounceMovement = L.Handler.extend({
1821 layerremove : this . totalBounds
1922 } ) ;
2023
21- this . _map . off ( 'map-moveend' , this . announceBounds ) ;
24+ this . _map . options . mapEl . removeEventListener (
25+ 'map-moveend' ,
26+ this . announceBounds
27+ ) ;
2228 this . _map . dragging . _draggable . removeEventListener (
2329 'dragstart' ,
2430 this . dragged
You can’t perform that action at this time.
0 commit comments