Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 2169a95

Browse files
committed
fix(scope): incorrect stage message
1 parent bb98990 commit 2169a95

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/core/scope.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ class Scope {
216216
} else {
217217
throw 'expressions must be String or AST got $expression.';
218218
}
219-
return watch = (readOnly ? _readOnlyGroup : _readWriteGroup).watch(ast, fn);
219+
WatchGroup group = readOnly ? _readOnlyGroup : _readWriteGroup;
220+
return watch = group.watch(ast, fn);
220221
}
221222

222223
dynamic eval(expression, [Map locals]) {
@@ -399,7 +400,7 @@ class ScopeStats {
399400
class RootScope extends Scope {
400401
static final STATE_APPLY = 'apply';
401402
static final STATE_DIGEST = 'digest';
402-
static final STATE_FLUSH = 'digest';
403+
static final STATE_FLUSH = 'flush';
403404

404405
final ExceptionHandler _exceptionHandler;
405406
final AstParser _astParser;

0 commit comments

Comments
 (0)