code: function createPrototype (klass, baseKlass, newKlass) {
      var __ = function () { this.constructor = newKlass; };
  
      __.prototype = baseKlass.prototype;
      mixin(__.prototype, klass.prototype);
  
      return new __();
  }
docs: Create prototype