mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
Fix coding error (kids = document.createElement ...) r=timeless,caillon
This commit is contained in:
parent
d1dd95b6b2
commit
27be36a7f8
@ -253,13 +253,13 @@ JSObjectViewer.prototype =
|
||||
|
||||
openTreeItem: function(aItem)
|
||||
{
|
||||
var kids = aItem.getElementsByTagName("treechildren");
|
||||
if (kids.length == 0) {
|
||||
kids = document.createElement("treechildren");
|
||||
aItem.appendChild(kids);
|
||||
var treechildren = aItem.getElementsByTagName("treechildren").item(0);
|
||||
if (!treechildren) {
|
||||
treechildren = document.createElement("treechildren");
|
||||
aItem.appendChild(treechildren);
|
||||
}
|
||||
|
||||
this.buildPropertyTree(kids, aItem.__JSValue__);
|
||||
this.buildPropertyTree(treechildren, aItem.__JSValue__);
|
||||
},
|
||||
|
||||
onCreateContext: function(aPopup)
|
||||
|
Loading…
x
Reference in New Issue
Block a user