|
@@ -150,10 +150,12 @@ Menu.prototype.popup = function (window, x, y, positioningItem) {
|
|
|
window = BrowserWindow.getFocusedWindow()
|
|
|
}
|
|
|
|
|
|
- // Default parameters.
|
|
|
+ // Default to showing under mouse location.
|
|
|
if (typeof x !== 'number') x = -1
|
|
|
if (typeof y !== 'number') y = -1
|
|
|
- if (typeof positioningItem !== 'number') positioningItem = 0
|
|
|
+
|
|
|
+ // Default to not highlighting any item.
|
|
|
+ if (typeof positioningItem !== 'number') positioningItem = -1
|
|
|
|
|
|
this.popupAt(window, x, y, positioningItem)
|
|
|
}
|