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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js

Issue 2560553004: 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/InplaceFormatterEditorAction.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js b/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
index 036a6fc8e63455ec3bc036c0705e51c4dce41c5c..7e8a6aa85172c73e035688d1d6a5eb25d353e1da 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
@@ -44,7 +44,7 @@
this._sourcesView.addEventListener(Sources.SourcesView.Events.EditorClosed, this._editorClosed.bind(this));
this._button = new UI.ToolbarButton(Common.UIString('Format'), 'largeicon-pretty-print');
- this._button.addEventListener(UI.ToolbarButton.Events.Click, this._formatSourceInPlace, this);
+ this._button.addEventListener('click', this._formatSourceInPlace, this);
this._updateButton(sourcesView.currentUISourceCode());
return this._button;
@@ -64,10 +64,7 @@
return uiSourceCode.contentType().isStyleSheet();
}
- /**
- * @param {!Common.Event} event
- */
- _formatSourceInPlace(event) {
+ _formatSourceInPlace() {
var uiSourceCode = this._sourcesView.currentUISourceCode();
if (!this._isFormattable(uiSourceCode))
return;

Powered by Google App Engine
This is Rietveld 408576698