Created
September 27, 2011 20:45
-
-
Save sssionggg/1246190 to your computer and use it in GitHub Desktop.
example
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
class Foldle.Models.Folder extends Backbone.Model | |
paramRoot: 'folder' | |
urlRoot: '/folders' | |
defaults: | |
name: null | |
class Foldle.Collections.FoldersCollection extends Backbone.Collection | |
model: Foldle.Models.Folder | |
url: '/folders' | |
getFolderBySlug: (slug) -> | |
folder = (@.filter (folder) => | |
folder.get('slug') == slug | |
)[0] | |
folder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment