Index: third_party/pkg/angular/lib/core_dom/common.dart |
diff --git a/third_party/pkg/angular/lib/core_dom/common.dart b/third_party/pkg/angular/lib/core_dom/common.dart |
index 47e004d0fda872f3a458957a1f3699544fa3ff48..bd71f3c3eb1fe117fe990bb5c578841ef6614e5c 100644 |
--- a/third_party/pkg/angular/lib/core_dom/common.dart |
+++ b/third_party/pkg/angular/lib/core_dom/common.dart |
@@ -1,38 +1,47 @@ |
-part of angular.core.dom; |
+part of angular.core.dom_internal; |
List<dom.Node> cloneElements(elements) { |
return elements.map((el) => el.clone(true)).toList(); |
} |
-typedef ApplyMapping(NodeAttrs attrs, Scope scope, Object dst, |
- FilterMap filters, notify()); |
+class MappingParts { |
+ final String attrName; |
+ final String mode; |
+ final String dstExpression; |
+ final String originalValue; |
+ |
+ const MappingParts(this.attrName, this.mode, this.dstExpression, this.originalValue); |
+} |
class DirectiveRef { |
final dom.Node element; |
final Type type; |
- final NgAnnotation annotation; |
+ final Directive annotation; |
final String value; |
- final List<ApplyMapping> mappings = new List<ApplyMapping>(); |
- |
- BlockFactory blockFactory; |
+ final mappings = new List<MappingParts>(); |
DirectiveRef(this.element, this.type, this.annotation, [ this.value ]); |
String toString() { |
- var html = element is dom.Element ? (element as dom.Element).outerHtml : element.nodeValue; |
- return '{ element: $html, selector: ${annotation.selector}, value: $value, type: $type }'; |
+ var html = element is dom.Element |
+ ? (element as dom.Element).outerHtml |
+ : element.nodeValue; |
+ return '{ element: $html, selector: ${annotation.selector}, value: $value, ' |
+ 'type: $type }'; |
} |
} |
/** |
- * Creates a child injector that allows loading new directives, filters and |
+ * Creates a child injector that allows loading new directives, formatters and |
* services from the provided modules. |
*/ |
Injector forceNewDirectivesAndFilters(Injector injector, List<Module> modules) { |
- modules.add(new Module()..factory(Scope, (i) { |
- var scope = i.parent.get(Scope); |
- return scope.createChild(new PrototypeMap(scope.context)); |
- })); |
+ modules.add(new Module() |
+ ..factory(Scope, (i) { |
+ var scope = i.parent.get(Scope); |
+ return scope.createChild(new PrototypeMap(scope.context)); |
+ })); |
+ |
return injector.createChild(modules, |
- forceNewInstances: [DirectiveMap, FilterMap]); |
+ forceNewInstances: [DirectiveMap, FormatterMap]); |
} |