| Index: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
|
| index f9e16d377d2147197222e34381b7a53a8b752b6e..23802863cea05cc431b474b96b867c2aa66ed3a8 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
|
| @@ -258,8 +258,7 @@ WebInspector.ConsoleView.prototype = {
|
| targetAdded: function(target)
|
| {
|
| this._viewport.invalidate();
|
| - var hasMultipleCotexts = WebInspector.targetManager.targets(WebInspector.Target.Capability.JS).length > 1;
|
| - this._showAllMessagesCheckbox.element.classList.toggle("hidden", !hasMultipleCotexts);
|
| + this._updateAllMessagesCheckbox();
|
| },
|
|
|
| /**
|
| @@ -268,6 +267,13 @@ WebInspector.ConsoleView.prototype = {
|
| */
|
| targetRemoved: function(target)
|
| {
|
| + this._updateAllMessagesCheckbox();
|
| + },
|
| +
|
| + _updateAllMessagesCheckbox: function()
|
| + {
|
| + var hasMultipleCotexts = WebInspector.targetManager.targets(WebInspector.Target.Capability.JS).length > 1;
|
| + this._showAllMessagesCheckbox.element.classList.toggle("hidden", !hasMultipleCotexts);
|
| },
|
|
|
| _registerWithMessageSink: function()
|
|
|