Add missing null check (#836)
This commit is contained in:
parent
0998bbf8d6
commit
ad8e9fe8e2
@ -399,8 +399,10 @@ class Frontend {
|
|||||||
this._clearSelection(true);
|
this._clearSelection(true);
|
||||||
this._popupEventListeners.removeAllEventListeners();
|
this._popupEventListeners.removeAllEventListeners();
|
||||||
this._popup = popup;
|
this._popup = popup;
|
||||||
this._popupEventListeners.on(popup, 'framePointerOver', this._onPopupFramePointerOver.bind(this));
|
if (popup !== null) {
|
||||||
this._popupEventListeners.on(popup, 'framePointerOut', this._onPopupFramePointerOut.bind(this));
|
this._popupEventListeners.on(popup, 'framePointerOver', this._onPopupFramePointerOver.bind(this));
|
||||||
|
this._popupEventListeners.on(popup, 'framePointerOut', this._onPopupFramePointerOut.bind(this));
|
||||||
|
}
|
||||||
this._isPointerOverPopup = false;
|
this._isPointerOverPopup = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user