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 7e8a6aa85172c73e035688d1d6a5eb25d353e1da..036a6fc8e63455ec3bc036c0705e51c4dce41c5c 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 @@ Sources.InplaceFormatterEditorAction = class { |
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('click', this._formatSourceInPlace, this); |
+ this._button.addEventListener(UI.ToolbarButton.Events.Click, this._formatSourceInPlace, this); |
this._updateButton(sourcesView.currentUISourceCode()); |
return this._button; |
@@ -64,7 +64,10 @@ Sources.InplaceFormatterEditorAction = class { |
return uiSourceCode.contentType().isStyleSheet(); |
} |
- _formatSourceInPlace() { |
+ /** |
+ * @param {!Common.Event} event |
+ */ |
+ _formatSourceInPlace(event) { |
var uiSourceCode = this._sourcesView.currentUISourceCode(); |
if (!this._isFormattable(uiSourceCode)) |
return; |