Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backbone.Model mixin vs derivation #32

Open
forivall opened this issue Jul 16, 2014 · 1 comment
Open

Backbone.Model mixin vs derivation #32

forivall opened this issue Jul 16, 2014 · 1 comment

Comments

@forivall
Copy link
Contributor

Currently if you use a BackboneORM sync and you want to overide a method, super is broken

@kmalakoff
Copy link
Member

Maybe we should provide three options:

  1. BackboneORM.Model for users who want to use derivation
  2. BackboneORM.Model.mixin() for users who already have models between - it should properly insert the methods in the prototype chain
  3. {BackboneVariant}.sync convenience mixin that uses BackboneORM.Model.mixin() under the hood

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants