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

Commit

Permalink
fix(scope): incorrect stage message
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery committed Mar 2, 2014
1 parent bb98990 commit 2169a95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/core/scope.dart
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ class Scope {
} else {
throw 'expressions must be String or AST got $expression.';
}
return watch = (readOnly ? _readOnlyGroup : _readWriteGroup).watch(ast, fn);
WatchGroup group = readOnly ? _readOnlyGroup : _readWriteGroup;
return watch = group.watch(ast, fn);
}

dynamic eval(expression, [Map locals]) {
Expand Down Expand Up @@ -399,7 +400,7 @@ class ScopeStats {
class RootScope extends Scope {
static final STATE_APPLY = 'apply';
static final STATE_DIGEST = 'digest';
static final STATE_FLUSH = 'digest';
static final STATE_FLUSH = 'flush';

final ExceptionHandler _exceptionHandler;
final AstParser _astParser;
Expand Down

0 comments on commit 2169a95

Please sign in to comment.