| Index: tools/dom/src/TemplateBindings.dart
|
| diff --git a/tools/dom/src/TemplateBindings.dart b/tools/dom/src/TemplateBindings.dart
|
| index 81cebd39d89598fc0aeb2c33ce7c034177c7da47..5f379daa0d83d76f1ae6e2cb9aa938ffdac67707 100644
|
| --- a/tools/dom/src/TemplateBindings.dart
|
| +++ b/tools/dom/src/TemplateBindings.dart
|
| @@ -611,11 +611,12 @@ class _Bindings {
|
| static void _removeChild(Node parent, Node child) {
|
| child._templateInstance = null;
|
| if (child is Element && (child as Element).isTemplate) {
|
| + Element childElement = child;
|
| // Make sure we stop observing when we remove an element.
|
| - var templateIterator = child._templateIterator;
|
| + var templateIterator = childElement._templateIterator;
|
| if (templateIterator != null) {
|
| templateIterator.abandon();
|
| - child._templateIterator = null;
|
| + childElement._templateIterator = null;
|
| }
|
| }
|
| child.remove();
|
|
|