mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2024-12-23 22:13:48 +01:00
24 lines
780 B
JavaScript
24 lines
780 B
JavaScript
|
/* */
|
||
|
"use strict";
|
||
|
var _Object$defineProperty = require("../core-js/object/define-property")["default"];
|
||
|
exports["default"] = (function() {
|
||
|
function defineProperties(target, props) {
|
||
|
for (var i = 0; i < props.length; i++) {
|
||
|
var descriptor = props[i];
|
||
|
descriptor.enumerable = descriptor.enumerable || false;
|
||
|
descriptor.configurable = true;
|
||
|
if ("value" in descriptor)
|
||
|
descriptor.writable = true;
|
||
|
_Object$defineProperty(target, descriptor.key, descriptor);
|
||
|
}
|
||
|
}
|
||
|
return function(Constructor, protoProps, staticProps) {
|
||
|
if (protoProps)
|
||
|
defineProperties(Constructor.prototype, protoProps);
|
||
|
if (staticProps)
|
||
|
defineProperties(Constructor, staticProps);
|
||
|
return Constructor;
|
||
|
};
|
||
|
})();
|
||
|
exports.__esModule = true;
|