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

Unified Diff: Source/devtools/front_end/sources/ScopeChainSidebarPane.js

Issue 944343002: DevTools: migrate treeoutline from hasChildren to is/setExpandable(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/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();
},

Powered by Google App Engine
This is Rietveld 408576698