Last Updated: February 25, 2016
·
604
· abe33

Enabling mixins inclusion for all Javascript classes

Function::include = (mixins...) ->
  for mixin in mixins
    @::[k] = v for k,v of mixin.prototype when k isnt 'constructor'