outsourced Textbind, improved automatic module loader

This commit is contained in:
Kevin Jahns
2015-11-09 03:03:37 +01:00
parent 08d07796ee
commit 2d20fd59d0
12 changed files with 50 additions and 1788 deletions

View File

@@ -44,10 +44,13 @@ function wait (t) {
}
g.wait = wait
g.databases = ['Memory']
g.databases = ['memory']
require('../../y-memory/src/Memory.js')(Y)
if (typeof window !== 'undefined') {
g.databases.push('IndexedDB')
g.databases.push('indexeddb')
require('../../y-indexeddb/src/IndexedDB.js')(Y)
}
require('../../y-array/src/Array.js')
/*
returns a random element of o.