aboutsummaryrefslogtreecommitdiff
path: root/src/preamble.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-13 14:57:05 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-13 14:57:05 -0700
commitee51b2bd829447fb83c5ebdbc3f8d157355c0fdc (patch)
tree36ce0b4b09b6d6b32d84edbbb12eeff0c84b8688 /src/preamble.js
parent8f3bb14fddb65ef6f47c0ca2b602079eba3bbb44 (diff)
clear dependenciesFulfilled after use
Diffstat (limited to 'src/preamble.js')
-rw-r--r--src/preamble.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 9501f8dc..579e3065 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -992,7 +992,10 @@ function removeRunDependency(id) {
clearInterval(runDependencyWatcher);
runDependencyWatcher = null;
}
- dependenciesFulfilled();
+ if (dependenciesFulfilled) {
+ dependenciesFulfilled();
+ dependenciesFulfilled = null;
+ }
}
}
Module['removeRunDependency'] = removeRunDependency;