Skip to content

Instantly share code, notes, and snippets.

@mkf-simpson
Created September 19, 2014 11:03
Show Gist options
  • Save mkf-simpson/5d43cc025e1ae45cb3bc to your computer and use it in GitHub Desktop.
Save mkf-simpson/5d43cc025e1ae45cb3bc to your computer and use it in GitHub Desktop.
class BaseCollection extends Backbone.Collection
parse: (response, options) ->
if options.xhr.status is 304
return @models
response
class BaseModel extends Backbone.Model
parse: (response, options) ->
if options.xhr.status is 304
return @_attributes
response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment