Shopify/batman — pull request #338 by hornairs (2012-02-22 22:46:45+00:00)
Title: Refactor yield rendering to be "more" determinisitc 

@nciagra for a very fast review please

- Switch yield, replace, and content for bindings to use $onParseExit so that they happen in step with the render, and in a determinate order.
- Renamed the workhorse functions and storage objects on Batman.DOM to be clearer
- Cleaned up the yield function bodies to not repeat stuff that $appendChild already does
- Removed the $cloneNode function in favour of just using the existing node.
- Added more tests for event handlers and bindings being preserved

Also @wanderview, if I may be so bold, do you think you could take a look at this and make sure your code still works with these changes?