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

Unified Diff: third_party/pkg/angular/lib/core_dom/common.dart

Issue 1058283006: Update pubspecs and dependencies to get pkgbuild tests working. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
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
deleted file mode 100644
index 47e004d0fda872f3a458957a1f3699544fa3ff48..0000000000000000000000000000000000000000
--- a/third_party/pkg/angular/lib/core_dom/common.dart
+++ /dev/null
@@ -1,38 +0,0 @@
-part of angular.core.dom;
-
-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 DirectiveRef {
- final dom.Node element;
- final Type type;
- final NgAnnotation annotation;
- final String value;
- final List<ApplyMapping> mappings = new List<ApplyMapping>();
-
- BlockFactory blockFactory;
-
- 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 }';
- }
-}
-
-/**
- * Creates a child injector that allows loading new directives, filters 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));
- }));
- return injector.createChild(modules,
- forceNewInstances: [DirectiveMap, FilterMap]);
-}
« no previous file with comments | « third_party/pkg/angular/lib/core_dom/block_factory.dart ('k') | third_party/pkg/angular/lib/core_dom/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698