Index: Source/devtools/front_end/components/InspectorView.js |
diff --git a/Source/devtools/front_end/components/InspectorView.js b/Source/devtools/front_end/components/InspectorView.js |
index 10d197e398ee93a0fa6c206254bb411b72f37396..fe771218553a51c733222a48bc47e9b589a9eb89 100644 |
--- a/Source/devtools/front_end/components/InspectorView.js |
+++ b/Source/devtools/front_end/components/InspectorView.js |
@@ -63,6 +63,7 @@ WebInspector.InspectorView = function() |
if (WebInspector.experimentsSettings.devicesPanel.isEnabled()) { |
this._remoteDeviceCountElement = this._rightToolbarElement.createChild("div", "hidden"); |
this._remoteDeviceCountElement.addEventListener("click", this.showViewInDrawer.bind(this, "devices"), false); |
+ this._remoteDeviceCountElement.id = "remote-device-count"; |
WebInspector.inspectorFrontendEventSink.addEventListener(WebInspector.InspectorView.Events.DeviceCountChanged, this._onDeviceCountChanged, this); |
} |
@@ -466,6 +467,9 @@ WebInspector.InspectorView.prototype = { |
_onDeviceCountChanged: function(event) |
{ |
var count = /** @type {number} */(event.data); |
apavlov
2014/05/29 13:26:11
A whitespace between '*/' and '(', while we are he
Dmitry Zvorygin
2014/05/29 14:55:44
Done.
|
+ if (count === this.deviceCount_) |
+ return; |
+ this.deviceCount_ = count; |
this._remoteDeviceCountElement.classList.toggle("hidden", !count); |
this._remoteDeviceCountElement.removeChildren(); |
this._createImagedCounterElementIfNeeded(this._remoteDeviceCountElement, count, "device-count", "device-icon-small"); |