emberjs/ember.js — pull request #718 by hufman (2012-04-21 16:04:05+00:00)
Title: Fixes a problem with adding an element right after a destroyed element

New elements get scheduled to be appended after an existing element in the DOM. However, removed elements get deleted immediately. When the new elements' scheduled appending happens, it crashes if the previous element is no longer in the DOM.
This patch adds a linked list implementation to child views so that inserted views can walk to a valid sibling, as well as tests that trigger the problem.