| 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 678e3cfcce058ebc111f669e87c1599355770300..09bc60a81d291ccd3c5caacb96c90e8c06ee5d61 100644
|
| --- a/third_party/pkg/angular/lib/mock/probe.dart
|
| +++ b/third_party/pkg/angular/lib/mock/probe.dart
|
| @@ -9,19 +9,20 @@ part of angular.mock;
|
| *
|
| * rootScope.myProbe.directive(SomeAttrDirective);
|
| */
|
| -@NgDirective(selector: '[probe]')
|
| -class Probe implements NgDetachAware {
|
| +@Decorator(selector: '[probe]')
|
| +class Probe implements DetachAware {
|
| final Scope scope;
|
| final Injector injector;
|
| final Element element;
|
| - final NodeAttrs _attrs;
|
| + String _probeName;
|
|
|
| - Probe(this.scope, this.injector, this.element, this._attrs) {
|
| - scope.rootScope.context[_attrs['probe']] = this;
|
| + Probe(this.scope, this.injector, this.element) {
|
| + _probeName = element.attributes['probe'];
|
| + scope.rootScope.context[_probeName] = this;
|
| }
|
|
|
| void detach() {
|
| - scope.rootScope.context[_attrs['probe']] = null;
|
| + scope.rootScope.context[_probeName] = null;
|
| }
|
|
|
| /**
|
|
|