diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-06 12:00:21 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-06 12:00:21 -0800 |
commit | b787395d8ff7a8ae0a173e25f903e5b9d425960e (patch) | |
tree | f7388f5667207676f00845ba35e90a4a1f609c72 /src | |
parent | 8e12485da51502aecbadd456852c845bc79f501f (diff) |
do not call run if dependencies are resolved but we were not supposed to call run in the first place
Diffstat (limited to 'src')
-rw-r--r-- | src/preamble.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js index fa86fca6..cb01994f 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -871,7 +871,8 @@ function removeRunDependency(id) { clearInterval(runDependencyWatcher); runDependencyWatcher = null; } - if (!calledRun) run(); + // If run has never been called, and we should call run (INVOKE_RUN is true, and Module.noInitialRun is not false) + if (!calledRun && shouldRunNow) run(); } } Module['removeRunDependency'] = removeRunDependency; |