| 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 1dc4a62a06074eb90f1d02daba54aeee730acd55..10552e35d50629b33e760ffe5381632e67894755 100644
|
| --- a/Source/devtools/front_end/ui/ContextMenu.js
|
| +++ b/Source/devtools/front_end/ui/ContextMenu.js
|
| @@ -290,16 +290,14 @@ WebInspector.ContextMenu.prototype = {
|
| {
|
| var menuObject = this._buildDescriptor();
|
|
|
| - if (menuObject.length) {
|
| - WebInspector._contextMenu = this;
|
| - if (WebInspector.ContextMenu._useSoftMenu || InspectorFrontendHost.isHostedMode()) {
|
| - var softMenu = new WebInspector.SoftContextMenu(menuObject, this._itemSelected.bind(this));
|
| - softMenu.show(this._event.target.ownerDocument, this._x, this._y);
|
| - } else {
|
| - 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);
|
| - }
|
| + WebInspector._contextMenu = this;
|
| + if (WebInspector.ContextMenu._useSoftMenu || InspectorFrontendHost.isHostedMode()) {
|
| + var softMenu = new WebInspector.SoftContextMenu(menuObject, this._itemSelected.bind(this));
|
| + softMenu.show(this._event.target.ownerDocument, this._x, this._y);
|
| + } else {
|
| + 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);
|
| }
|
| },
|
|
|
|
|