MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / inherits

Function inherits

ui/media/js/croppr.js:118–132  ·  view source on GitHub ↗
(subClass, superClass)

Source from the content-addressed store, hash-verified

116};
117
118var inherits = function (subClass, superClass) {
119 if (typeof superClass !== "function" && superClass !== null) {
120 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
121 }
122
123 subClass.prototype = Object.create(superClass && superClass.prototype, {
124 constructor: {
125 value: subClass,
126 enumerable: false,
127 writable: true,
128 configurable: true
129 }
130 });
131 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
132};
133
134
135

Callers 1

croppr.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected