chiark
/
gitweb
/
~mdw
/
dep-ui
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dep.js (value): Force the dep before registering a dependents.
[dep-ui]
/
dep.js
diff --git
a/dep.js
b/dep.js
index d21f94a0af41f6df7cfb31c94e38896af04d7bbe..ec09e83be612004890e8dc9c9cc5bffff06e1017 100644
(file)
--- a/
dep.js
+++ b/
dep.js
@@
-395,11
+395,11
@@
Dep.prototype = {
var val;
if (STATE === 'recomputing') {
+ this._force();
if (EVALUATING) {
this._dependents[EVALUATING._seq] = EVALUATING;
EVALUATING._dependencies[this._seq] = this;
}
- this._force();
}
val = this._value;
if (val === BAD) throw BAD;