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