本时支付宝小程序
This commit is contained in:
25
node_modules/mini-html-parser2/lib/inherits.js
generated
vendored
Normal file
25
node_modules/mini-html-parser2/lib/inherits.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
'use strict';
|
||||
|
||||
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() {};
|
||||
TempCtor.prototype = superCtor.prototype;
|
||||
ctor.prototype = new TempCtor();
|
||||
ctor.prototype.constructor = ctor;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user