aboutsummaryrefslogtreecommitdiff
path: root/src/modules.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-05-15 08:04:34 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-05-15 08:04:34 -0700
commit3afb3d53d70c6d9a3e84e488cfa986b8cd7b2733 (patch)
treeafbc41358a13cfe329ddeae93f6ab4f6f7c57ef2 /src/modules.js
parentf66293c6affe4e4c4ddb5ec40dff802dee989094 (diff)
indexize necessary library functions
Diffstat (limited to 'src/modules.js')
-rw-r--r--src/modules.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules.js b/src/modules.js
index a91a41ec..fd18fc72 100644
--- a/src/modules.js
+++ b/src/modules.js
@@ -145,9 +145,16 @@ var Functions = {
};
var LibraryManager = {
+ ready: false,
+
+ init: function() {
+ this.ready = true;
+ },
+
// Given an ident, see if it is an alias for something, and so forth, returning
// the earliest ancestor (the root)
getRootIdent: function(ident) {
+ if (!this.ready) return null;
var ret = Library[ident];
if (!ret) return null;
var last = ident;