| 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 library polymer.custom_element; | 5 library polymer.custom_element; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'package:mdv/mdv.dart' as mdv; | 9 import 'package:mdv/mdv.dart' as mdv; |
| 10 import 'package:meta/meta.dart'; | 10 import 'package:meta/meta.dart'; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 get model => host.model; | 182 get model => host.model; |
| 183 | 183 |
| 184 void set model(newModel) { | 184 void set model(newModel) { |
| 185 host.model = newModel; | 185 host.model = newModel; |
| 186 } | 186 } |
| 187 | 187 |
| 188 get templateInstance => host.templateInstance; | 188 get templateInstance => host.templateInstance; |
| 189 get isTemplate => host.isTemplate; | 189 get isTemplate => host.isTemplate; |
| 190 get ref => host.ref; | 190 get ref => host.ref; |
| 191 get content => host.content; | 191 get content => host.content; |
| 192 DocumentFragment createInstance(model, String syntax) => | 192 DocumentFragment createInstance(model, BindingDelegate delegate) => |
| 193 host.createInstance(model, syntax); | 193 host.createInstance(model, delegate); |
| 194 void bind(String name, model, String path) => host.bind(name, model, path); | 194 void bind(String name, model, String path) => host.bind(name, model, path); |
| 195 void unbind(String name) => host.unbind(name); | 195 void unbind(String name) => host.unbind(name); |
| 196 void unbindAll() => host.unbindAll(); | 196 void unbindAll() => host.unbindAll(); |
| 197 | 197 |
| 198 // TODO(jmesserly): this forwarding is temporary until Dart supports | 198 // TODO(jmesserly): this forwarding is temporary until Dart supports |
| 199 // subclassing Elements. | 199 // subclassing Elements. |
| 200 // TODO(jmesserly): we were missing the setter for title, are other things | 200 // TODO(jmesserly): we were missing the setter for title, are other things |
| 201 // missing setters? | 201 // missing setters? |
| 202 | 202 |
| 203 List<Node> get nodes => host.nodes; | 203 List<Node> get nodes => host.nodes; |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 /** | 677 /** |
| 678 * DEPRECATED: this has no effect. Shadow DOM should always be used with custom | 678 * DEPRECATED: this has no effect. Shadow DOM should always be used with custom |
| 679 * elements. | 679 * elements. |
| 680 * | 680 * |
| 681 * Set this to true to use native Shadow DOM if it is supported. | 681 * Set this to true to use native Shadow DOM if it is supported. |
| 682 * Note that this will change behavior of [WebComponent] APIs for tree | 682 * Note that this will change behavior of [WebComponent] APIs for tree |
| 683 * traversal. | 683 * traversal. |
| 684 */ | 684 */ |
| 685 @deprecated | 685 @deprecated |
| 686 bool useShadowDom = false; | 686 bool useShadowDom = false; |
| OLD | NEW |