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

Unified Diff: pkg/polymer/lib/src/declaration.dart

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 | « pkg/polymer/lib/src/build/runner.dart ('k') | pkg/polymer/lib/src/instance.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/declaration.dart
diff --git a/pkg/polymer/lib/src/declaration.dart b/pkg/polymer/lib/src/declaration.dart
index 07c0dc4074e7d72c3ea424f4193585c3611ae143..76c6eda6731fc7ef74cd62d673fec6566862b6fc 100644
--- a/pkg/polymer/lib/src/declaration.dart
+++ b/pkg/polymer/lib/src/declaration.dart
@@ -68,8 +68,8 @@ class PolymerDeclaration extends HtmlElement {
List<Element> get styles => _styles;
DocumentFragment get templateContent {
- final template = this.query('template');
- return template != null ? template.content : null;
+ final template = this.querySelector('template');
+ return template != null ? templateBind(template).content : null;
}
/** Maps event names and their associated method in the element class. */
@@ -336,8 +336,8 @@ class PolymerDeclaration extends HtmlElement {
}
void accumulateTemplatedEvents(Element node, Set<String> events) {
- if (node.localName == 'template' && node.content != null) {
- accumulateChildEvents(node.content, events);
+ if (node.localName == 'template') {
+ accumulateChildEvents(templateBind(node).content, events);
}
}
« no previous file with comments | « pkg/polymer/lib/src/build/runner.dart ('k') | pkg/polymer/lib/src/instance.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698