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

Side by Side 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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library template_binding.test.utils; 5 library template_binding.test.utils;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'package:observe/observe.dart'; 8 import 'package:observe/observe.dart';
9 import 'package:template_binding/template_binding.dart'; 9 import 'package:template_binding/template_binding.dart';
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 return root; 88 return root;
89 } 89 }
90 90
91 /** 91 /**
92 * Sanitizer which does nothing. 92 * Sanitizer which does nothing.
93 */ 93 */
94 class NullTreeSanitizer implements NodeTreeSanitizer { 94 class NullTreeSanitizer implements NodeTreeSanitizer {
95 void sanitizeTree(Node node) {} 95 void sanitizeTree(Node node) {}
96 } 96 }
97
98 unbindAll(node) {
99 nodeBind(node).unbindAll();
100 for (var child = node.firstChild; child != null; child = child.nextNode) {
101 unbindAll(child);
102 }
103 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698