Created
March 13, 2013 12:59
-
-
Save willscripted/5151839 to your computer and use it in GitHub Desktop.
Collection Loading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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