Created
March 18, 2013 05:46
-
-
Save mikeknoop/5185280 to your computer and use it in GitHub Desktop.
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
Book = new Backbone.Model.extend() | |
Paginate = | |
page: 0 | |
turnPage: () -> | |
@page += 1 | |
@fetch {data: {page: @page}} | |
book = _.extend new Book(), Paginate | |
book.turnPage() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment