Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: third_party/pkg/angular/lib/mock/probe.dart

Issue 176943008: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/angular/lib/mock/probe.dart
diff --git a/third_party/pkg/angular/lib/mock/probe.dart b/third_party/pkg/angular/lib/mock/probe.dart
index b146bf63d5c9d5e72129974395727b59a8278b8b..678e3cfcce058ebc111f669e87c1599355770300 100644
--- a/third_party/pkg/angular/lib/mock/probe.dart
+++ b/third_party/pkg/angular/lib/mock/probe.dart
@@ -17,10 +17,12 @@ class Probe implements NgDetachAware {
final NodeAttrs _attrs;
Probe(this.scope, this.injector, this.element, this._attrs) {
- scope.$root[_attrs['probe']] = this;
+ scope.rootScope.context[_attrs['probe']] = this;
}
- detach() => scope.$root[_attrs['probe']] = null;
+ void detach() {
+ scope.rootScope.context[_attrs['probe']] = null;
+ }
/**
* Retrieve a Directive at the current element.

Powered by Google App Engine
This is Rietveld 408576698