Index: Source/devtools/front_end/ui/ContextMenu.js |
diff --git a/Source/devtools/front_end/ui/ContextMenu.js b/Source/devtools/front_end/ui/ContextMenu.js |
index b81b0adc96c20642064a85f1f82095b128107999..6297985f0fbf455f657500f10703f012760bdaaf 100644 |
--- a/Source/devtools/front_end/ui/ContextMenu.js |
+++ b/Source/devtools/front_end/ui/ContextMenu.js |
@@ -197,9 +197,8 @@ |
* @constructor |
* @extends {WebInspector.ContextSubMenuItem} |
* @param {!Event} event |
- * @param {!Window=} opt_window |
- */ |
-WebInspector.ContextMenu = function(event, opt_window) |
+ */ |
+WebInspector.ContextMenu = function(event) |
{ |
WebInspector.ContextSubMenuItem.call(this, this, ""); |
/** @type {!Array.<!Promise.<!WebInspector.ContextMenu.Provider> >} */ |
@@ -211,7 +210,6 @@ |
this._y = event.y; |
this._handlers = {}; |
this._id = 0; |
- this._window = opt_window || window; |
} |
WebInspector.ContextMenu.initialize = function() |
@@ -280,7 +278,7 @@ |
var softMenu = new WebInspector.SoftContextMenu(menuObject, this._itemSelected.bind(this)); |
softMenu.show(this._x, this._y); |
} else { |
- InspectorFrontendHost.showContextMenuAtPoint(this._x, this._y, menuObject, this._window); |
+ InspectorFrontendHost.showContextMenuAtPoint(this._x, this._y, menuObject); |
InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.ContextMenuCleared, this._menuCleared, this); |
InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.ContextMenuItemSelected, this._onItemSelected, this); |
} |