Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1117)

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js

Issue 2393763002: [DevTools] Cleanup DOMExtension.js. (Closed)
Patch Set: review comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js b/third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js
index 88b1c715b82e048e255f9d9f50713bfc6dc1d094..99c432ca8991e90d7144b2f0620d2b4622dfb71f 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/SoftContextMenu.js
@@ -61,7 +61,7 @@ WebInspector.SoftContextMenu.prototype = {
this.element.style.left = (this._parentMenu ? x - subMenuOverlap : x) + "px";
this._contextMenuElement.tabIndex = 0;
- this._contextMenuElement.addEventListener("mouseup", consumeEvent, false);
+ this._contextMenuElement.addEventListener("mouseup", (e) => e.consume(), false);
this._contextMenuElement.addEventListener("keydown", this._menuKeyDown.bind(this), false);
for (var i = 0; i < this._items.length; ++i)

Powered by Google App Engine
This is Rietveld 408576698