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

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

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
« no previous file with comments | « third_party/pkg/angular/lib/mock/module.dart ('k') | third_party/pkg/angular/lib/mock/test_bed.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
/**
« no previous file with comments | « third_party/pkg/angular/lib/mock/module.dart ('k') | third_party/pkg/angular/lib/mock/test_bed.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698