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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/ObjectEventListenersSidebarPane.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/sources/ObjectEventListenersSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/ObjectEventListenersSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/sources/ObjectEventListenersSidebarPane.js
index e1ba2fc44ac56575d0beb19f7dc53fadf37b4642..db31f978df3f8fff2e3fd11c281416f5586c9634 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/ObjectEventListenersSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/ObjectEventListenersSidebarPane.js
@@ -11,7 +11,7 @@
this.element.classList.add('event-listeners-sidebar-pane');
this._refreshButton = new UI.ToolbarButton(Common.UIString('Refresh'), 'largeicon-refresh');
- this._refreshButton.addEventListener(UI.ToolbarButton.Events.Click, this._refreshClick, this);
+ this._refreshButton.addEventListener('click', this._refreshClick.bind(this));
this._refreshButton.setEnabled(false);
this._eventListenersView = new Components.EventListenersView(this.element, this.update.bind(this));
@@ -91,7 +91,7 @@
* @param {!Common.Event} event
*/
_refreshClick(event) {
- event.data.consume();
+ event.consume();
this.update();
}
};

Powered by Google App Engine
This is Rietveld 408576698