applyMixins.js 511 B

123456789101112
  1. /** PURE_IMPORTS_START PURE_IMPORTS_END */
  2. export function applyMixins(derivedCtor, baseCtors) {
  3. for (var i = 0, len = baseCtors.length; i < len; i++) {
  4. var baseCtor = baseCtors[i];
  5. var propertyKeys = Object.getOwnPropertyNames(baseCtor.prototype);
  6. for (var j = 0, len2 = propertyKeys.length; j < len2; j++) {
  7. var name_1 = propertyKeys[j];
  8. derivedCtor.prototype[name_1] = baseCtor.prototype[name_1];
  9. }
  10. }
  11. }
  12. //# sourceMappingURL=applyMixins.js.map