walmartlabs/thorax — pull request #101 by eastridge (2013-01-17 20:04:14+00:00)
Title: Add fix for collection bind / rendering race condition

@kpdecker @jhudson8

This is the ugly fix I mentioned in my email. A summary of the race condition:

events that are triggered on the collection as it is bound. Collections are rendered via events, some of which are bound after the collection is bound. If the view will eventually bind the collection rendering events to the collection, it will start collecting events on the collection immediately before is bound, applying the events after it is bound. After that point this custom event handling is `off`d and the collection behaves normally.

@Candid, I ran into this issue because of image carousels (which work with this fix) in US mweb. Can you give a summary of what you changed in ASDA land to make image carousels work with Thorax 2?

If we want to proceed merging this fix I'll create a test case.