Opal-Estate-Pro/node_modules/component-inherit/index.js
2019-09-13 11:27:52 +07:00

7 lines
146 B
JavaScript
Executable File

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