applyMixins.js 508 B

12345678910111213
  1. "use strict";
  2. 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. exports.applyMixins = applyMixins;
  13. //# sourceMappingURL=applyMixins.js.map