Skip to content

Instantly share code, notes, and snippets.

@zkessin
Created September 6, 2012 12:42
Show Gist options
  • Save zkessin/3655855 to your computer and use it in GitHub Desktop.
Save zkessin/3655855 to your computer and use it in GitHub Desktop.
Backbone Mock Sync
Backbone.sync = (method, collection, {url: url}) ->
collection.reset(My.Sync.data[url])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment