Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Unified Diff: tools/dom/templates/html/impl/impl_Node.darttemplate

Issue 34453003: Rename mdv -> template_binding, remove experiemntal apis from dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/templates/html/impl/impl_HTMLTemplateElement.darttemplate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_Node.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Node.darttemplate b/tools/dom/templates/html/impl/impl_Node.darttemplate
index 7fa868c346e204ad954970f95ef5c0edbb3be184..12204671d8d64ef96e651e4fba444cdb6cc9e18e 100644
--- a/tools/dom/templates/html/impl/impl_Node.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Node.darttemplate
@@ -182,27 +182,6 @@ $endif
Node operator[](int index) => _this.childNodes[index];
}
-/** Information about the instantiated template. */
-class TemplateInstance {
- // TODO(rafaelw): firstNode & lastNode should be read-synchronous
- // in cases where script has modified the template instance boundary.
-
- /** The first node of this template instantiation. */
- final Node firstNode;
-
- /**
- * The last node of this template instantiation.
- * This could be identical to [firstNode] if the template only expanded to a
- * single node.
- */
- final Node lastNode;
-
- /** The model used to instantiate the template. */
- final model;
-
- TemplateInstance(this.firstNode, this.lastNode, this.model);
-}
-
$(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
@@ -280,52 +259,6 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
*/
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()
- bind(String name, model, String path) =>
- TemplateElement.mdvPackage(this).bind(name, model, path);
-
- /** Unbinds the attribute [name]. */
- @Experimental()
- void unbind(String name) {
- TemplateElement.mdvPackage(this).unbind(name);
- }
-
- /** Unbinds all bound attributes. */
- @Experimental()
- void unbindAll() {
- 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 =>
- TemplateElement.mdvPackage(this).templateInstance;
-
-
/**
* Use ownerDocument instead.
*/
« no previous file with comments | « tools/dom/templates/html/impl/impl_HTMLTemplateElement.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698