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; |