mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
11 lines
No EOL
266 B
CoffeeScript
11 lines
No EOL
266 B
CoffeeScript
module.exports = class CocoCollection extends Backbone.Collection
|
|
loaded: false
|
|
|
|
initialize: ->
|
|
super()
|
|
@once 'sync', =>
|
|
@loaded = true
|
|
model.loaded = true for model in @models
|
|
|
|
getURL: ->
|
|
return if _.isString @url then @url else @url() |