Sha256: 2e20e4212ce6c320ad9120e27730f39aefed87073bc9fae0487990ab3b7d0d24
Contents?: true
Size: 679 Bytes
Versions: 31
Compression:
Stored size: 679 Bytes
Contents
/* */ if (typeof Object.create === 'function') { // implementation from standard node.js 'util' module module.exports = function inherits(ctor, superCtor) { ctor.super_ = superCtor ctor.prototype = Object.create(superCtor.prototype, { constructor: { value: ctor, enumerable: false, writable: true, configurable: true } }); }; } else { // old school shim for old browsers module.exports = function inherits(ctor, superCtor) { ctor.super_ = superCtor var TempCtor = function () {} TempCtor.prototype = superCtor.prototype ctor.prototype = new TempCtor() ctor.prototype.constructor = ctor } }
Version data entries
31 entries across 31 versions & 1 rubygems