Skip to content

Instantly share code, notes, and snippets.

@mikeknoop
Created March 18, 2013 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeknoop/5185280 to your computer and use it in GitHub Desktop.
Save mikeknoop/5185280 to your computer and use it in GitHub Desktop.
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