Bug: fetch would create a new model on page change - this would override the cache, killing the model stored in the cache. This destroys the models - but leaves some listeners around, cause memory leaks (that's bad too).
The fix: Checks to see if it's already a model, if it is, just return that instead of creating a new model (where the initialize method calls .store to save the model in the modelStore).
Coverage increased (+0.24%) when pulling 457dce847ce417898137119874a8d66f618d6be9 on saponifi3d:fix-model-retrival-from-store into 41528534b9c608b48c16d241fef0a6b52a6dcfb5 on rendrjs:master.
Bug: fetch would create a new model on page change - this would override the cache, killing the model stored in the cache. This destroys the models - but leaves some listeners around, cause memory leaks (that's bad too).
The fix: Checks to see if it's already a model, if it is, just return that instead of creating a new model (where the initialize method calls .store to save the model in the modelStore).