| OLD | NEW |
| 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 |
| OLD | NEW |