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