X-Git-Url: https://git.distorted.org.uk/~mdw/dep-ui/blobdiff_plain/d87223741448e0ad851949aafce5bd0441b8b9ab..55be9d83928fa05d864282eb8e5513535906ffe9:/dep.js diff --git a/dep.js b/dep.js index d21f94a..f9a9a18 100644 --- 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. - if (!(f & F_VALUE)) s += ' #{out-of-date}'; + if (!(f & F_VALUE)) s += ' #{stale}'; else if (v === BAD) s += ' #{bad}'; else s += ' ' + v.toString(); @@ -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; @@ -444,7 +444,7 @@ Dep.prototype = { function orelse(thunk, errthunk) { /* Call THUNK. If it succeeds, then return its result. If THUNK - * reads a bad dep then call ERRTHINK and return its result instead. + * reads a bad dep then call ERRTHUNK and return its result instead. */ var e;