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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.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/ColorSwatch.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js b/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js
index fc5a8e12ba30bf29a1349c4d264fd6f22bc19008..eeb3fcb047ca1def42d8fa0ff4bf070b91ce4d33 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/ColorSwatch.js
@@ -91,8 +91,8 @@ WebInspector.ColorSwatch.prototype = {
this._iconElement = root.createChild("span", "color-swatch");
this._iconElement.title = WebInspector.UIString("Shift-click to change color format");
this._swatchInner = this._iconElement.createChild("span", "color-swatch-inner");
- this._swatchInner.addEventListener("dblclick", consumeEvent, false);
- this._swatchInner.addEventListener("mousedown", consumeEvent, false);
+ this._swatchInner.addEventListener("dblclick", (e) => e.consume(), false);
+ this._swatchInner.addEventListener("mousedown", (e) => e.consume(), false);
this._swatchInner.addEventListener("click", this._handleClick.bind(this), true);
root.createChild("content");

Powered by Google App Engine
This is Rietveld 408576698