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

Unified Diff: pkg/template_binding/lib/src/instance_binding_map.dart

Issue 98533004: update TemplateBinding and Custom Elements polyfills (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: update pubspecs Created 7 years 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/custom_element/pubspec.yaml ('k') | pkg/template_binding/lib/src/template.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/template_binding/lib/src/instance_binding_map.dart
diff --git a/pkg/template_binding/lib/src/instance_binding_map.dart b/pkg/template_binding/lib/src/instance_binding_map.dart
index 3868343c8aa675007f74fab14687cb4cd3966676..9b1bf6d53221897e5ea75bcca8a76bfbdecaf946 100644
--- a/pkg/template_binding/lib/src/instance_binding_map.dart
+++ b/pkg/template_binding/lib/src/instance_binding_map.dart
@@ -8,21 +8,14 @@ class _InstanceBindingMap {
final List bindings;
final List<_InstanceBindingMap> children;
final Node templateRef;
- final bool hasSubTemplate;
- _InstanceBindingMap._(this.bindings, this.children, this.templateRef,
- this.hasSubTemplate);
+ _InstanceBindingMap._(this.bindings, this.children, this.templateRef);
factory _InstanceBindingMap(Node node, BindingDelegate delegate) {
var bindings = _getBindings(node, delegate);
-
- bool hasSubTemplate = false;
Node templateRef = null;
- if (isSemanticTemplate(node)) {
- templateRef = node;
- hasSubTemplate = true;
- }
+ if (isSemanticTemplate(node)) templateRef = node;
List children = null;
for (var c = node.firstChild, i = 0; c != null; c = c.nextNode, i++) {
@@ -31,13 +24,9 @@ class _InstanceBindingMap {
if (children == null) children = new List(node.nodes.length);
children[i] = childMap;
- if (childMap.hasSubTemplate) {
- hasSubTemplate = true;
- }
}
- return new _InstanceBindingMap._(bindings, children, templateRef,
- hasSubTemplate);
+ return new _InstanceBindingMap._(bindings, children, templateRef);
}
}
« no previous file with comments | « pkg/custom_element/pubspec.yaml ('k') | pkg/template_binding/lib/src/template.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698