0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-12-23 14:13:47 +01:00
Doodle3D-API/jspm_packages/npm/babel-runtime@5.6.20/helpers/inherits.js
2015-07-15 15:06:18 +02:00

18 lines
597 B
JavaScript

/* */
"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;