Web Inspector: ES6: Show Symbol properties on Objects
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Views / TypePropertiesSection.js
index 929ad42..02af481 100644 (file)
@@ -90,7 +90,7 @@ WebInspector.TypePropertiesSection.PropertyComparator = function(propertyA, prop
     if (b.indexOf("__proto__") !== -1)
         return -1;
     if (a === b)
-        return 1;
+        return 0;
 
     var diff = 0;
     var chunk = /^\d+|^\D+/;
@@ -129,13 +129,13 @@ WebInspector.TypePropertyTreeElement = class TypePropertyTreeElement extends Web
 {
     constructor(property)
     {
-        super(this.nameElement, null, false);
+        var titleElement = document.createElement("span");
+        super(titleElement, null, false);
 
         this.property = property;
 
-        this.nameElement = document.createElement("span");
-        this.nameElement.className = "name";
-        this.nameElement.textContent = this.property.name;
+        titleElement.className = "name";
+        titleElement.textContent = this.property.name;
 
         this.toggleOnClick = true;
         this.hasChildren = !!this.property.structure;