Fix coding error (kids = document.createElement ...) r=timeless,caillon
git-svn-id: svn://10.0.0.236/trunk@193999 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
cc43b73138
commit
33eda93daf
@ -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