Allow EventTarget to use a different default target

This commit is contained in:
Andreas Hocevar
2019-09-26 17:48:18 +02:00
parent d8f55ea3f1
commit 899af3e5c7
3 changed files with 22 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ class MapBrowserEventHandler extends EventTarget {
*/
constructor(map, moveTolerance) {
super();
super(map);
/**
* This is the element that we will listen to the real events on.