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

Commit 70d83c5

Browse files
committed
fix(introspection): warnings
Closes #497
1 parent 0814631 commit 70d83c5

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

lib/introspection.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ js.JsObject _jsInjector(Injector injector) =>
9999
js.JsObject _jsScope(Scope scope) {
100100
return new js.JsObject.jsify({
101101
"apply": scope.apply,
102-
"digest": scope.digest,
103-
"flush": scope.flush,
102+
"digest": scope.rootScope.digest,
103+
"flush": scope.rootScope.flush,
104104
"context": scope.context,
105105
"get": (name) => scope.context[name],
106106
"set": (name, value) => scope.context[name] = value

test/core_dom/compiler_spec.dart

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -462,20 +462,7 @@ main() => describe('dte.compiler', () {
462462
expect(logger).toEqual(['new']);
463463

464464
rootScope.apply();
465-
var expected = ['new', 'inner'];
466-
assert((() {
467-
// there is an assertion in flush which double checks that
468-
// flushes do not change model. This assertion creates one
469-
// more 'inner';
470-
expected.add('inner');
471-
return true;
472-
})());
473-
expect(logger).toEqual(expected);
474-
logger.clear();
475-
476-
scope.context['once'] = '123';
477-
rootScope.apply();
478-
expected = ['attach:@ready; =>ready; =>!123', 'inner'];
465+
var expected = ['new', 'attach:@ready; =>ready; =>!null', 'inner'];
479466
assert((() {
480467
// there is an assertion in flush which double checks that
481468
// flushes do not change model. This assertion creates one

0 commit comments

Comments
 (0)