applyMixins.js 571 B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. function applyMixins(derivedCtor, baseCtors) {
  4. for (var i = 0, len = baseCtors.length; i < len; i++) {
  5. var baseCtor = baseCtors[i];
  6. var propertyKeys = Object.getOwnPropertyNames(baseCtor.prototype);
  7. for (var j = 0, len2 = propertyKeys.length; j < len2; j++) {
  8. var name_1 = propertyKeys[j];
  9. derivedCtor.prototype[name_1] = baseCtor.prototype[name_1];
  10. }
  11. }
  12. }
  13. exports.applyMixins = applyMixins;
  14. //# sourceMappingURL=applyMixins.js.map