Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4113304
mfExtend.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
582 B
Referenced Files
None
Subscribers
None
mfExtend.js
View Options
/**
* 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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment