~mdw
/
dep-ui
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dep.js (orelse): Fix typo in the documentation comment.
[dep-ui]
/
dep.js
diff --git
a/dep.js
b/dep.js
index
d21f94a
..
f9a9a18
100644
(file)
--- a/
dep.js
+++ b/
dep.js
@@
-235,7
+235,7
@@
Dep.prototype = {
s += ' #' + this._seq;
// The value, or some kind of marker that it doesn't have one.
s += ' #' + this._seq;
// The value, or some kind of marker that it doesn't have one.
- if (!(f & F_VALUE)) s += ' #{
out-of-dat
e}';
+ if (!(f & F_VALUE)) s += ' #{
stal
e}';
else if (v === BAD) s += ' #{bad}';
else s += ' ' + v.toString();
else if (v === BAD) s += ' #{bad}';
else s += ' ' + v.toString();
@@
-395,11
+395,11
@@
Dep.prototype = {
var val;
if (STATE === 'recomputing') {
var val;
if (STATE === 'recomputing') {
+ this._force();
if (EVALUATING) {
this._dependents[EVALUATING._seq] = EVALUATING;
EVALUATING._dependencies[this._seq] = this;
}
if (EVALUATING) {
this._dependents[EVALUATING._seq] = EVALUATING;
EVALUATING._dependencies[this._seq] = this;
}
- this._force();
}
val = this._value;
if (val === BAD) throw BAD;
}
val = this._value;
if (val === BAD) throw BAD;
@@
-444,7
+444,7
@@
Dep.prototype = {
function orelse(thunk, errthunk) {
/* Call THUNK. If it succeeds, then return its result. If THUNK
function orelse(thunk, errthunk) {
/* Call THUNK. If it succeeds, then return its result. If THUNK
- * reads a bad dep then call ERRTH
I
NK and return its result instead.
+ * reads a bad dep then call ERRTH
U
NK and return its result instead.
*/
var e;
*/
var e;