documentcloud/backbone — Issue #962: Models not available in Collection.initialize()
Author: anushr
Created: 2012-02-06 12:28:24+00:00
State: open

In 0.5.3, the Collection's constructor used to set the models before calling `initialize()`. However, with 0.9, the models get set only after `initialize()`.

Our existing `initialize()` code relies on models existing in order to run some aggregate calculations. Now, all that is broken. Why the change?

Additionally, when `reset()` is called to set the models, it is done silently, so we can't even listen to the "reset" event to perform the calculations.