codecombat/app/models/CocoCollection.coffee
2014-01-03 10:32:13 -08:00

8 lines
No EOL
200 B
CoffeeScript

module.exports = class CocoCollection extends Backbone.Collection
loaded: false
initialize: ->
super()
@once 'sync', =>
@loaded = true
model.loaded = true for model in @models