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

Side by Side Diff: third_party/pkg/angular/lib/core_dom/common.dart

Issue 148453003: Updating Angular version (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 part of angular.core.dom; 1 part of angular.core.dom;
2 2
3 List<dom.Node> cloneElements(elements) { 3 List<dom.Node> cloneElements(elements) {
4 var clones = []; 4 return elements.map((el) => el.clone(true)).toList();
5 for(var i = 0, ii = elements.length; i < ii; i++) {
6 clones.add(elements[i].clone(true));
7 }
8 return clones;
9 } 5 }
10 6
11 typedef ApplyMapping(NodeAttrs attrs, Scope scope, Object dst); 7 typedef ApplyMapping(NodeAttrs attrs, Scope scope, Object dst);
12 8
13 class DirectiveRef { 9 class DirectiveRef {
14 final dom.Node element; 10 final dom.Node element;
15 final Type type; 11 final Type type;
16 final NgAnnotation annotation; 12 final NgAnnotation annotation;
17 final String value; 13 final String value;
18 final List<ApplyMapping> mappings = new List<ApplyMapping>(); 14 final List<ApplyMapping> mappings = new List<ApplyMapping>();
19 15
20 BlockFactory blockFactory; 16 BlockFactory blockFactory;
21 17
22 DirectiveRef(this.element, this.type, this.annotation, [ this.value ]); 18 DirectiveRef(this.element, this.type, this.annotation, [ this.value ]);
23 19
24 String toString() { 20 String toString() {
25 var html = element is dom.Element ? (element as dom.Element).outerHtml : ele ment.nodeValue; 21 var html = element is dom.Element ? (element as dom.Element).outerHtml : ele ment.nodeValue;
26 return '{ element: $html, selector: ${annotation.selector}, value: $value }' ; 22 return '{ element: $html, selector: ${annotation.selector}, value: $value }' ;
27 } 23 }
28 } 24 }
29 25
OLDNEW
« 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