List of utility methods to do Function Mixin
Function.prototype.mixin = function() { var mixins = Array.toArray(arguments); mixins.forEach(function(mixin) { Object.extend(this.prototype, mixin.prototype || mixin); }, this); };