I’m a big fan of CoffeeScript. It makes working with Backbone.js so much nicer than doing it
in VanillaJS.
However, one thing I wish CS had was built in support for mixin declarations. There was some discussion on a closed pull request
for adding support for mixins, but no progress was made.
One of the snippets from the pull request gave me an idea for faking mixin support.
The following code will add an include function to the Backbone objects.
You can now use this to add properties and methods to your classes.