aboutsummaryrefslogtreecommitdiff
path: root/src/postamble.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-03-15 14:07:04 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-03-15 14:07:04 -0700
commitbe1631232551386af02b424eb40d236215696e4a (patch)
treecd61496f94065e20f9ae92f5850a54f458bc6ffa /src/postamble.js
parent38b121aff6b48f724023d837fd164836c3f7fb69 (diff)
add file preloading in browsers
Diffstat (limited to 'src/postamble.js')
-rw-r--r--src/postamble.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/postamble.js b/src/postamble.js
index 56f0aee1..7371ff05 100644
--- a/src/postamble.js
+++ b/src/postamble.js
@@ -53,10 +53,10 @@ if (Module['preRun']) {
#if INVOKE_RUN
#else
-Module['noInitialRun'] = true;
+addRunDependency();
#endif
-if (!Module['noInitialRun']) {
+if (runDependencies == 0) {
var ret = run();
#if CATCH_EXIT_CODE
print('Exit Status: ' + ret);