gmac / backbone.epoxy

Declarative data binding and computed models for Backbone
http://epoxyjs.org
MIT License
615 stars 89 forks source link

Allow the Epoxy.View to be mixed in with out eliminating bindings #68

Closed georgefrick closed 10 years ago

georgefrick commented 10 years ago

It's nice to be able to just call Epoxy.View.mixin(this); instead of trying to create a mixed in hiearchy of views. It works great except that the bindings get wiped out (if you aren't using data-bind).

This small change causes the bindings to not be replaced.

vjpr commented 10 years ago

+1 Just ran into this.

Quick monkey patch:

_.defaults this, Epoxy.View.prototype
gmac commented 10 years ago

You got it. Thanks!