Skip to content

Instantly share code, notes, and snippets.

@willscripted
Created March 13, 2013 12:59
Show Gist options
  • Save willscripted/5151839 to your computer and use it in GitHub Desktop.
Save willscripted/5151839 to your computer and use it in GitHub Desktop.
Collection Loading
# Could do this as part of our initializer file
Blacklead = {
Collections: {}
Models: {}
Views: {}
Routers: {}
}
Blacklead.Collections.getAlerts = do ->
alerts = new Blacklead.Collections.AlertsCollection
alerts.fetch()
return ->
return alerts
# ... repeat for collection in Collections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment