Correct recursive call for varDump
This commit is contained in:
parent
1458315cd5
commit
752b4d2526
1 changed files with 1 additions and 1 deletions
|
@ -1064,7 +1064,7 @@ Zotero.Utilities = {
|
||||||
dumped_text += level_padding + "'" + item + "' => " + openBrace;
|
dumped_text += level_padding + "'" + item + "' => " + openBrace;
|
||||||
//only recurse if there's anything in the object, purely cosmetical
|
//only recurse if there's anything in the object, purely cosmetical
|
||||||
for(var i in value) {
|
for(var i in value) {
|
||||||
dumped_text += "\n" + varDump(value,level+1,maxLevel,parentObjects.concat([value]),path.concat([item])) + level_padding;
|
dumped_text += "\n" + Zotero.Utilities.varDump(value,level+1,maxLevel,parentObjects.concat([value]),path.concat([item])) + level_padding;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
dumped_text += closeBrace + "\n";
|
dumped_text += closeBrace + "\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue