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

Monkey patch Backbone.extend for better syntactic sugar? #2

Closed
gregtillbrook opened this issue Aug 29, 2013 · 2 comments
Closed

Monkey patch Backbone.extend for better syntactic sugar? #2

gregtillbrook opened this issue Aug 29, 2013 · 2 comments

Comments

@gregtillbrook
Copy link

I really like the way Cocktail patches the extend method so that mixin includes can be written far more clearly (imho) in the form;

var MyView = Backbone.View.extend({
  mixins: [MyMixin1, MyMixin2],

  etc...
});

Any chance of similar in Advice?

@rhysbrettbowen
Copy link
Owner

Have a look at: https://github.com/rhysbrettbowen/Backbone.AdviceFactory

I think that might be what you want. It does some extra stuff on top of better syntax like resolving mixins and extends in a more intuitive manner.

@gregtillbrook
Copy link
Author

Ah, very interesting. Thanks

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