Fixed minor issue in currentAPI.js

This commit is contained in:
Atlante45 2014-05-30 17:25:42 -07:00
parent e217ed7f75
commit 2514906bd7

View file

@ -11,6 +11,10 @@
function listKeys(string, object) {
if (string == "listKeys") {
return;
}
if (typeof(object) != "object") {
print(typeof(object) + " " + string);
return;
@ -18,9 +22,7 @@ function listKeys(string, object) {
var keys = Object.keys(object);
for (var i = 0; i < keys.length; ++i) {
if (string == "listKeys") {
return;
} else if (string == "") {
if (string == "") {
listKeys(keys[i], object[keys[i]]);
} else {
listKeys(string + "." + keys[i], object[keys[i]]);