| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Custom Elements let authors define their own elements. Authors associate code | 6 * Custom Elements let authors define their own elements. Authors associate code |
| 7 * with custom tag names, and then use those custom tag names as they would any | 7 * with custom tag names, and then use those custom tag names as they would any |
| 8 * standard tag. See <www.polymer-project.org/platform/custom-elements.html> | 8 * standard tag. See <www.polymer-project.org/platform/custom-elements.html> |
| 9 * for more information. | 9 * for more information. |
| 10 */ | 10 */ |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 host.createInstance(model, delegate); | 190 host.createInstance(model, delegate); |
| 191 createBinding(String name, model, String path) => | 191 createBinding(String name, model, String path) => |
| 192 host.createBinding(name, model, path); | 192 host.createBinding(name, model, path); |
| 193 bind(String name, model, String path) => host.bind(name, model, path); | 193 bind(String name, model, String path) => host.bind(name, model, path); |
| 194 void unbind(String name) => host.unbind(name); | 194 void unbind(String name) => host.unbind(name); |
| 195 void unbindAll() => host.unbindAll(); | 195 void unbindAll() => host.unbindAll(); |
| 196 get bindings => host.bindings; | 196 get bindings => host.bindings; |
| 197 BindingDelegate get bindingDelegate => host.bindingDelegate; | 197 BindingDelegate get bindingDelegate => host.bindingDelegate; |
| 198 set bindingDelegate(BindingDelegate value) { host.bindingDelegate = value; } | 198 set bindingDelegate(BindingDelegate value) { host.bindingDelegate = value; } |
| 199 | 199 |
| 200 // TODO(efortuna): Update these when we decide what to do with these |
| 201 // properties. |
| 202 @deprecated |
| 203 String getAttribute(String name) => |
| 204 host.getAttribute(name); |
| 205 |
| 206 @deprecated |
| 207 String getAttributeNS(String namespaceUri, String localName) => |
| 208 host.getAttributeNS(namespaceUri, localName); |
| 209 |
| 210 @deprecated |
| 211 String setAttributeNS( |
| 212 String namespaceUri, String localName, String value) { |
| 213 host.setAttributeNS(namespaceUri, localName, value); |
| 214 } |
| 215 |
| 216 @deprecated |
| 217 void setAttribute(String name, String value) => |
| 218 host.setAttribute(name, value); |
| 219 |
| 220 @deprecated |
| 221 List<Node> get childNodes => host.childNodes; |
| 222 |
| 200 // TODO(jmesserly): this forwarding is temporary until Dart supports | 223 // TODO(jmesserly): this forwarding is temporary until Dart supports |
| 201 // subclassing Elements. | 224 // subclassing Elements. |
| 202 // TODO(jmesserly): we were missing the setter for title, are other things | 225 // TODO(jmesserly): we were missing the setter for title, are other things |
| 203 // missing setters? | 226 // missing setters? |
| 204 | 227 |
| 205 List<Node> get nodes => host.nodes; | 228 List<Node> get nodes => host.nodes; |
| 206 | 229 |
| 207 set nodes(Iterable<Node> value) { host.nodes = value; } | 230 set nodes(Iterable<Node> value) { host.nodes = value; } |
| 208 | 231 |
| 209 /** | 232 /** |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 for (var removed in record.removedNodes) { | 632 for (var removed in record.removedNodes) { |
| 610 if (identical(node, removed)) { | 633 if (identical(node, removed)) { |
| 611 observer.disconnect(); | 634 observer.disconnect(); |
| 612 element.removed(); | 635 element.removed(); |
| 613 return; | 636 return; |
| 614 } | 637 } |
| 615 } | 638 } |
| 616 } | 639 } |
| 617 }).observe(element.parentNode, childList: true); | 640 }).observe(element.parentNode, childList: true); |
| 618 } | 641 } |
| OLD | NEW |