Index: pkg/mdv/lib/src/template_iterator.dart |
diff --git a/pkg/mdv/lib/src/template_iterator.dart b/pkg/mdv/lib/src/template_iterator.dart |
index 84581657b87902afc5084e1aa70de93e8540357e..6c87a42a292d5857171984d7718625e936889447 100644 |
--- a/pkg/mdv/lib/src/template_iterator.dart |
+++ b/pkg/mdv/lib/src/template_iterator.dart |
@@ -344,7 +344,9 @@ class _TemplateIterator { |
return; |
} |
- var instanceCache = new HashMap(equals: identical); |
+ // TODO(jmesserly): IdentityMap matches JS semantics, but it's O(N) right |
+ // now. See http://dartbug.com/4161. |
+ var instanceCache = new IdentityMap(); |
var removeDelta = 0; |
for (var splice in splices) { |
for (int i = 0; i < splice.removedCount; i++) { |