mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Fixed minor issue in currentAPI.js
This commit is contained in:
parent
e217ed7f75
commit
2514906bd7
1 changed files with 5 additions and 3 deletions
|
@ -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]]);
|
||||
|
|
Loading…
Reference in a new issue