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

Unified Diff: Source/devtools/front_end/promises/PromisePane.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/promises/PromisePane.js
diff --git a/Source/devtools/front_end/promises/PromisePane.js b/Source/devtools/front_end/promises/PromisePane.js
index e83a8fd6bade41a110b801525b05e42e970a8cd5..cf0daaf87499b4b8150555e36b1b31f0200c79c0 100644
--- a/Source/devtools/front_end/promises/PromisePane.js
+++ b/Source/devtools/front_end/promises/PromisePane.js
@@ -44,8 +44,8 @@ WebInspector.PromisePane = function()
WebInspector.PromisePane.prototype = {
_recordButtonClicked: function(event)
{
- var recording = !this._recordButton.toggled;
- this._recordButton.toggled = recording;
+ var recording = !this._recordButton.toggled();
+ this._recordButton.setToggled(recording);
this._refreshButton.setEnabled(recording);
if (recording)
this._enablePromiseTracker();
« no previous file with comments | « Source/devtools/front_end/profiler/ProfilesPanel.js ('k') | Source/devtools/front_end/resources/ApplicationCacheItemsView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698