Skip to content

Instantly share code, notes, and snippets.

@psykidellic
Created June 26, 2013 16:13
Show Gist options
  • Select an option

  • Save psykidellic/5868795 to your computer and use it in GitHub Desktop.

Select an option

Save psykidellic/5868795 to your computer and use it in GitHub Desktop.
A = Backbone.Collection.extend(
sync: (method, collection, option) ->
return Backbone.sync(...)
)
B = A.extend(
#sync: (method, collection, option) ->
# return A.sync(...)
)
C = B.extend(
sync: (method, collection, option) ->
@doSomething()
super() or return B.sync(method, collection, option)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment