Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/bookshelf/lib/ drwxr-xr-x | |
| Viewing file: Select action/file-type: const _ = require('lodash');
// Uses a hash of prototype properties and class properties to be extended.
module.exports = function extend(protoProps, staticProps) {
const Parent = this;
// The constructor function for the new subclass is either defined by you
// (the "constructor" property in your `extend` definition), or defaulted
// by us to simply call the parent's constructor.
const Child =
protoProps && protoProps.hasOwnProperty('constructor')
? protoProps.constructor
: function() {
return Parent.apply(this, arguments);
};
Object.assign(Child, Parent, staticProps);
// Set the prototype chain to inherit from `Parent`.
Child.prototype = Object.create(Parent.prototype, {
constructor: {
value: Child,
enumerable: false,
writable: true,
configurable: true
}
});
if (protoProps) {
Object.assign(Child.prototype, protoProps);
}
// Give child access to the parent prototype as part of "super"
Child.__super__ = Parent.prototype;
// If there is an "extended" function set on the parent,
// call it with the extended child object.
if (_.isFunction(Parent.extended)) Parent.extended(Child);
return Child;
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0238 ]-- |