Fixed a small error in the migration.

This commit is contained in:
Scott Erickson 2014-03-26 14:44:11 -07:00
parent 8001e58848
commit 092810eba2

View file

@ -9,7 +9,7 @@ class SuperModel
@mustPopulate = model
model.saveBackups = @shouldSaveBackups(model)
model.fetch() unless model.loaded or model.loading
@listenTo(model, 'sync', @modelLoaded) unless model.loaded
@listenToOnce(model, 'sync', @modelLoaded) unless model.loaded
@listenToOnce(model, 'error', @modelErrored) unless model.loaded
url = model.url()
@models[url] = model unless @models[url]?