Files
Werewolf/node_modules/component-inherit/index.js
2019-08-29 22:14:54 -04:00

7 lines
146 B
JavaScript

module.exports = function(a, b){
var fn = function(){};
fn.prototype = b.prototype;
a.prototype = new fn;
a.prototype.constructor = a;
};