content/hifi-public/cozza13/scripts/currentAPI.js
Dale Glass 0d14e5a379 Initial data.
Needs a lot of cleanup. Data has been de-duplicated, and where identical copies existed, one of them
has been replaced with a symlink.

Some files have been excluded, such as binaries, installers and debug dumps. Some of that may still
be present.
2022-02-13 18:59:11 +01:00

42 lines
1 KiB
JavaScript

//
// currentAPI.js
// examples
//
// Created by Clément Brisset on 5/30/14.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
var array = [];
var buffer = "\n\n\n\n\n======= JS API list =======";
function listKeys(string, object) {
if (string == "listKeys" || string == "array" || string == "buffer" || string == "i") {
return;
}
if (typeof(object) != "object") {
array.push(string + " " + typeof(object));
return;
}
var keys = Object.keys(object);
for (var i = 0; i < keys.length; ++i) {
if (string == "") {
listKeys(keys[i], object[keys[i]]);
} else {
listKeys(string + "." + keys[i], object[keys[i]]);
}
}
}
listKeys("", this);
array.sort();
for (var i = 0; i < array.length; ++i) {
buffer = buffer + "\n" + array[i];
}
buffer = buffer + "\n========= API END =========\n\n\n\n\n";
print(buffer);