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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js

Issue 2573323002: Revert of [DevTools] Remove methods on Common.Event. (Closed)
Patch Set: Created 4 years 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/network/BlockedURLsPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js b/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js
index 200b299495290906d7bf5477768efdbe4bea12d5..5e3690c2d44eb00dbd0c5b09b00401b562f4f7a3 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/BlockedURLsPane.js
@@ -18,10 +18,10 @@
this._toolbar = new UI.Toolbar('', this.contentElement);
this._toolbar.element.addEventListener('click', (e) => e.consume());
var addButton = new UI.ToolbarButton(Common.UIString('Add pattern'), 'largeicon-add');
- addButton.addEventListener(UI.ToolbarButton.Events.Click, this._addButtonClicked, this);
+ addButton.addEventListener('click', this._addButtonClicked.bind(this));
this._toolbar.appendToolbarItem(addButton);
var clearButton = new UI.ToolbarButton(Common.UIString('Remove all'), 'largeicon-clear');
- clearButton.addEventListener(UI.ToolbarButton.Events.Click, this._removeAll, this);
+ clearButton.addEventListener('click', this._removeAll.bind(this));
this._toolbar.appendToolbarItem(clearButton);
this._emptyElement = this.contentElement.createChild('div', 'no-blocked-urls');

Powered by Google App Engine
This is Rietveld 408576698