HubSpot / mixen

Combine Javascript classes on the fly
http://github.hubspot.com/mixen
MIT License
85 stars 2 forks source link

Functions from the last Mixin in the chain fail to be called #4

Open SeanMcMillan opened 11 years ago

SeanMcMillan commented 11 years ago

I tried to use Mixen to combine Chaplin and Backbone.HAL, both of which are written in coffeescript, and both of which extend Backbone.Model. But when mixed together, calls that should be implemented by to the last mixin in the chain fail to be executed. It looks like moduleSuper never actually calls the function if it's from the last mixin.

I was able to recreate the issue in simplified form on jsfiddle: http://jsfiddle.net/PSfNE/