airbnb/rendr — pull request #205 by growlypants (2013-12-01 23:50:44+00:00)
Title: added modelInstances cache to modelUtils.

This fixes the problem of each view getting a new version of the same model.
This way models can trigger events and have different views listen to those events.

It gets cleared on every new action and isn't run on the server.
This way they can be garbage collected along with the associated events and views.

addresses https://github.com/airbnb/rendr/issues/167

I didn't write any tests because I don't know if this is a direction we should go. But it does work. If y'all like this blunt implementation I'll add some tests.