Check that x is non-null
This commit is contained in:
parent
a8d1a7aed4
commit
d0b07d5c36
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ Menu.prototype.popup = function (window, x, y, positioningItem) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// menu.popup(window, {})
|
// menu.popup(window, {})
|
||||||
if (typeof x === 'object') {
|
if (x != null && typeof x === 'object') {
|
||||||
const options = x
|
const options = x
|
||||||
x = options.x
|
x = options.x
|
||||||
y = options.y
|
y = options.y
|
||||||
|
|
Loading…
Reference in a new issue