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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 get model => host.model; | 219 get model => host.model; |
220 | 220 |
221 void set model(newModel) { | 221 void set model(newModel) { |
222 host.model = newModel; | 222 host.model = newModel; |
223 } | 223 } |
224 | 224 |
225 get templateInstance => host.templateInstance; | 225 get templateInstance => host.templateInstance; |
226 get isTemplate => host.isTemplate; | 226 get isTemplate => host.isTemplate; |
227 get ref => host.ref; | 227 get ref => host.ref; |
228 get content => host.content; | 228 get content => host.content; |
229 DocumentFragment createInstance(model, BindingDelegate delegate) => | 229 DocumentFragment createInstance(model, [BindingDelegate delegate]) => |
230 host.createInstance(model, delegate); | 230 host.createInstance(model, delegate); |
231 createBinding(String name, model, String path) => | 231 createBinding(String name, model, String path) => |
232 host.createBinding(name, model, path); | 232 host.createBinding(name, model, path); |
233 void bind(String name, model, String path) => host.bind(name, model, path); | 233 void bind(String name, model, String path) => host.bind(name, model, path); |
234 void unbind(String name) => host.unbind(name); | 234 void unbind(String name) => host.unbind(name); |
235 void unbindAll() => host.unbindAll(); | 235 void unbindAll() => host.unbindAll(); |
236 get bindings => host.bindings; | 236 get bindings => host.bindings; |
237 BindingDelegate get bindingDelegate => host.bindingDelegate; | 237 BindingDelegate get bindingDelegate => host.bindingDelegate; |
238 set bindingDelegate(BindingDelegate value) { host.bindingDelegate = value; } | 238 set bindingDelegate(BindingDelegate value) { host.bindingDelegate = value; } |
239 | 239 |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 for (var removed in record.removedNodes) { | 696 for (var removed in record.removedNodes) { |
697 if (identical(node, removed)) { | 697 if (identical(node, removed)) { |
698 observer.disconnect(); | 698 observer.disconnect(); |
699 element.removed(); | 699 element.removed(); |
700 return; | 700 return; |
701 } | 701 } |
702 } | 702 } |
703 } | 703 } |
704 }).observe(element.parentNode, childList: true); | 704 }).observe(element.parentNode, childList: true); |
705 } | 705 } |
OLD | NEW |