Shopify/batman — pull request #624 by kristianpd (2012-12-17 21:46:03+00:00)
Title: Fix iterator binding

Fixes issues with deferred rendering in iterator bindings attempting to destroy nodes before they've been fully rendered. Since the rendering is asynchronous, it results in bindings being created after the node is destroyed and therefore leaked. This results in detached DOM trees.

Keep a list of nodes that have yet to be rendered, and if they are to be removed, defer removal until they're done rendering.

A follow up to this may be to kill the renderer or take out deferred rendering all together, but this should be an improvement in the meantime.

@hornairs @cjoudrey