| Index: sdk/lib/html/dartium/html_dartium.dart
|
| diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
|
| index f817506bd27c1a42ca959f8c97d8cc07ecb9531c..c85269dcce0d15ebf9c5ded6bd2aa4d92737e7f0 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -17880,6 +17880,7 @@ class TemplateInstance {
|
| TemplateInstance(this.firstNode, this.lastNode, this.model);
|
| }
|
|
|
| +
|
| @DomName('Node')
|
| class Node extends EventTarget {
|
| List<Node> get nodes {
|
| @@ -17953,14 +17954,28 @@ class Node extends EventTarget {
|
| */
|
| String toString() => nodeValue == null ? super.toString() : nodeValue;
|
|
|
| +
|
| + /**
|
| + * Creates a binding to the attribute [name] to the [path] of the [model].
|
| + *
|
| + * This can be overridden by custom elements to provide the binding used in
|
| + * [Node.bind]. This will only create the binding; it will not add it to
|
| + * [bindings].
|
| + *
|
| + * You should not need to call this directly except from [Node.bind].
|
| + */
|
| + @Experimental()
|
| + createBinding(String name, model, String path) =>
|
| + TemplateElement.mdvPackage(this).createBinding(name, model, path);
|
| +
|
| /**
|
| * Binds the attribute [name] to the [path] of the [model].
|
| * Path is a String of accessors such as `foo.bar.baz`.
|
| + * Returns the `NodeBinding` instance.
|
| */
|
| @Experimental()
|
| - void bind(String name, model, String path) {
|
| - TemplateElement.mdvPackage(this).bind(name, model, path);
|
| - }
|
| + bind(String name, model, String path) =>
|
| + TemplateElement.mdvPackage(this).bind(name, model, path);
|
|
|
| /** Unbinds the attribute [name]. */
|
| @Experimental()
|
| @@ -17974,6 +17989,11 @@ class Node extends EventTarget {
|
| TemplateElement.mdvPackage(this).unbindAll();
|
| }
|
|
|
| + /** Gets the data bindings that are associated with this node. */
|
| + @Experimental()
|
| + Map<String, dynamic> get bindings =>
|
| + TemplateElement.mdvPackage(this).bindings;
|
| +
|
| /** Gets the template instance that instantiated this node, if any. */
|
| @Experimental()
|
| TemplateInstance get templateInstance =>
|
|
|