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

Unified Diff: Source/devtools/front_end/ui/StatusBarButton.js

Issue 307623003: [DevTools] Apps implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 6 years, 7 months 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/ui/StatusBarButton.js
diff --git a/Source/devtools/front_end/ui/StatusBarButton.js b/Source/devtools/front_end/ui/StatusBarButton.js
index 1eeb220483d883a984f42aaf2489f58fb5b522b7..438bb77498906ea1ef5e8d2e68113fc7dfd817ba 100644
--- a/Source/devtools/front_end/ui/StatusBarButton.js
+++ b/Source/devtools/front_end/ui/StatusBarButton.js
@@ -610,7 +610,6 @@ WebInspector.StatusBarStatesSettingButton = function(className, states, titles,
this.setLongClickOptionsEnabled(this._createOptions.bind(this));
this._currentState = null;
- this.toggleState(this._defaultState());
}
WebInspector.StatusBarStatesSettingButton.prototype = {
@@ -643,6 +642,12 @@ WebInspector.StatusBarStatesSettingButton.prototype = {
this.title = this._buttons[this._states.indexOf(defaultState)].title;
},
+ toggleInitialState: function()
+ {
+ if (this._currentState === null)
+ this.toggleState(this._defaultState());
+ },
+
/**
* @return {string}
*/

Powered by Google App Engine
This is Rietveld 408576698