Created
November 25, 2012 20:28
-
-
Save janroesner/4145204 to your computer and use it in GitHub Desktop.
Fetching or not
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
initialize: (barId, foozId)-> | |
@collection = Global().cache.get(FoosCollection, barId, foozId) | |
if @collection.isEmpty() | |
@collection.fetch() | |
else | |
@collection.trigger 'reset' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment