Merge pull request #9604 from bartvde/window-global

Use window instead of global in addEventListener
This commit is contained in:
Bart van den Eijnden authored and GitHub committed 2019-05-24 15:17:07 +02:00
commit 7044e30529
1 file changed
+1 -1
+1 -1
View File
@@ -1057,7 +1057,7 @@ class PluggableMap extends BaseObject {
if (!this.handleResize_) {
this.handleResize_ = this.updateSize.bind(this);
global.addEventListener(EventType.RESIZE, this.handleResize_, false);
window.addEventListener(EventType.RESIZE, this.handleResize_, false);
}
}