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

Unified Diff: pkg/template_binding/test/utils.dart

Issue 42433002: port Node.bind to bd0a0591920da9091b326627a46a104a92c7efe7 (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
Index: pkg/template_binding/test/utils.dart
diff --git a/pkg/template_binding/test/utils.dart b/pkg/template_binding/test/utils.dart
index 4aee4b96bf7bfd8a5c6a0708ce41ae0afc19e83a..92d63e4e6ff235463acec9437f96484be7bca8da 100644
--- a/pkg/template_binding/test/utils.dart
+++ b/pkg/template_binding/test/utils.dart
@@ -94,3 +94,10 @@ createShadowTestHtml(s) {
class NullTreeSanitizer implements NodeTreeSanitizer {
void sanitizeTree(Node node) {}
}
+
+unbindAll(node) {
+ nodeBind(node).unbindAll();
+ for (var child = node.firstChild; child != null; child = child.nextNode) {
+ unbindAll(child);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698