0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-09-28 15:18:37 +02:00
Doodle3D-API/jspm_packages/npm/babel-runtime@5.6.20/helpers/inherits.js

18 lines
597 B
JavaScript
Raw Normal View History

2015-07-15 15:06:18 +02:00
/* */
"use strict";
var _Object$create = require("../core-js/object/create")["default"];
exports["default"] = function(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}
subClass.prototype = _Object$create(superClass && superClass.prototype, {constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}});
if (superClass)
subClass.__proto__ = superClass;
};
exports.__esModule = true;