MCPcopy Create free account
hub / github.com/TruthHun/BookStack / inherits

Function inherits

static/word2md/mammoth.browser.js:9220–9237  ·  view source on GitHub ↗
(Child, Parent)

Source from the content-addressed store, hash-verified

9218}
9219
9220var inherits = function(Child, Parent) {
9221 var hasProp = {}.hasOwnProperty;
9222
9223 function T() {
9224 this.constructor = Child;
9225 this.constructor$ = Parent;
9226 for (var propertyName in Parent.prototype) {
9227 if (hasProp.call(Parent.prototype, propertyName) &&
9228 propertyName.charAt(propertyName.length-1) !== "$"
9229 ) {
9230 this[propertyName + "$"] = Parent.prototype[propertyName];
9231 }
9232 }
9233 }
9234 T.prototype = Parent.prototype;
9235 Child.prototype = new T();
9236 return Child.prototype;
9237};
9238
9239
9240function isPrimitive(val) {

Callers 2

subErrorFunction · 0.70
mammoth.browser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected