aboutsummaryrefslogtreecommitdiff
path: root/src/modules.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-27 15:25:31 -0500
committerAlon Zakai <alonzakai@gmail.com>2012-12-27 15:25:31 -0500
commit275adcf5ce7729295d0fa706cbb2f45ac0a875ef (patch)
tree2d0067ee1f647a132448aac0469f07a874ffd196 /src/modules.js
parent66021ae3aba2f532610efda849f8dbabc8f94783 (diff)
allow (unoptimal) single-phase compiler.js invocation
Diffstat (limited to 'src/modules.js')
-rw-r--r--src/modules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.js b/src/modules.js
index fd0ec35e..64638be1 100644
--- a/src/modules.js
+++ b/src/modules.js
@@ -269,7 +269,7 @@ var LibraryManager = {
loaded: false,
load: function() {
- assert(!this.library);
+ if (this.library) return;
var libraries = ['library.js', 'library_browser.js', 'library_sdl.js', 'library_gl.js', 'library_glut.js', 'library_xlib.js', 'library_egl.js', 'library_gc.js', 'library_jansson.js'].concat(additionalLibraries);
for (var i = 0; i < libraries.length; i++) {