Page MenuHomeWickedGov Phorge

mfExtend.js
No OneTemporary

Size
582 B
Referenced Files
None
Subscribers
None

mfExtend.js

/**
* Extends a class with new methods and member properties.
*
* @ignore
* @param {Function} Child function
* @param {Object|Function} ParentOrPrototype class to inherit from
* OR if no inheriting class a prototype to extend the class with
* @param {Object} [prototype]
*/
module.exports = function mfExtend( Child, ParentOrPrototype, prototype ) {
let key;
if ( prototype ) {
OO.inheritClass( Child, ParentOrPrototype );
} else {
OO.initClass( Child );
prototype = ParentOrPrototype;
}
for ( key in prototype ) {
Child.prototype[key] = prototype[key];
}
};

File Metadata

Mime Type
text/plain
Expires
Tue, Aug 18, 23:20 (1 d, 14 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
67/cb/fd0ca14860ea37bbb3b948a3037b
Default Alt Text
mfExtend.js (582 B)

Event Timeline