Index: pkg/template_binding/test/utils.dart |
=================================================================== |
--- pkg/template_binding/test/utils.dart (revision 37373) |
+++ pkg/template_binding/test/utils.dart (working copy) |
@@ -105,9 +105,11 @@ |
void sanitizeTree(Node node) {} |
} |
-unbindAll(node) { |
- nodeBind(node).unbindAll(); |
+clearAllTemplates(node) { |
+ if (isSemanticTemplate(node)) { |
+ templateBind(node).clear(); |
+ } |
for (var child = node.firstChild; child != null; child = child.nextNode) { |
- unbindAll(child); |
+ clearAllTemplates(child); |
} |
} |