Index: Source/devtools/front_end/sources/ScopeChainSidebarPane.js |
diff --git a/Source/devtools/front_end/sources/ScopeChainSidebarPane.js b/Source/devtools/front_end/sources/ScopeChainSidebarPane.js |
index 5385158cfffc9225086189f869243241b2b2d93c..3f15ed563bf182e9e646d210dd1d2d34ace94e0a 100644 |
--- a/Source/devtools/front_end/sources/ScopeChainSidebarPane.js |
+++ b/Source/devtools/front_end/sources/ScopeChainSidebarPane.js |
@@ -151,7 +151,7 @@ WebInspector.ScopeChainSidebarPane.prototype = { |
_elementAttached: function(event) |
{ |
var element = /** @type {!WebInspector.ObjectPropertyTreeElement} */ (event.data); |
- if (element.hasChildren && this._expandedProperties.has(this._propertyPath(element))) |
+ if (element.isExpandable() && this._expandedProperties.has(this._propertyPath(element))) |
element.expand(); |
}, |