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

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

Issue 722713002: DevTools: get rid of getters and setters in StatusBarButton. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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: Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
diff --git a/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js b/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
index b0ab997f956b0562c46ad54301870854efe0742c..a527ec64169f798604cfd3224fec31db4cf2a208 100644
--- a/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
+++ b/Source/devtools/front_end/sources/InplaceFormatterEditorAction.js
@@ -53,7 +53,7 @@ WebInspector.InplaceFormatterEditorAction.prototype = {
this._sourcesView.addEventListener(WebInspector.SourcesView.Events.EditorClosed, this._editorClosed.bind(this));
this._button = new WebInspector.StatusBarButton(WebInspector.UIString("Format"), "sources-toggle-pretty-print-status-bar-item");
- this._button.toggled = false;
+ this._button.setToggled(false);
this._button.addEventListener("click", this._formatSourceInPlace, this);
this._updateButton(null);

Powered by Google App Engine
This is Rietveld 408576698