UNPKG

gulp-structify

Version:

Generates WebGL-compatible Structs and StructBuffers from a template file.

20 lines 748 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ctor = "constructor"; function applyMixins(derivedCtor) { var baseCtors = []; for (var _i = 1; _i < arguments.length; _i++) { baseCtors[_i - 1] = arguments[_i]; } for (var _a = 0, baseCtors_1 = baseCtors; _a < baseCtors_1.length; _a++) { var baseCtor = baseCtors_1[_a]; for (var _b = 0, _c = Object.getOwnPropertyNames(baseCtor.prototype); _b < _c.length; _b++) { var name_1 = _c[_b]; if (name_1 !== ctor) { derivedCtor.prototype[name_1] = baseCtor.prototype[name_1]; } } } } exports.applyMixins = applyMixins; //# sourceMappingURL=mixin.js.map