chiark
/
gitweb
/
~mdw
/
dep-ui
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d872237
)
dep.js (value): Force the dep before registering a dependents.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 30 Jun 2018 21:49:23 +0000
(22:49 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 30 Jun 2018 21:49:23 +0000
(22:49 +0100)
Otherwise we'll add the dependent to the list, and then `_propagate'
will clear the list, forgetting about us.
dep.js
patch
|
blob
|
blame
|
history
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;