mirror of
https://gitlab.com/Shinobi-Systems/ShinobiCE.git
synced 2025-03-09 15:40:15 +00:00
Shinobi CE officially lands on Gitlab
This commit is contained in:
commit
f1406d4eec
431 changed files with 118157 additions and 0 deletions
17
tools/ffmpegToWeb/Player/broadway/utils/inherit.js
Normal file
17
tools/ffmpegToWeb/Player/broadway/utils/inherit.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
"use strict";
|
||||
|
||||
/**
|
||||
* Creates a new prototype object derived from another objects prototype along with a list of additional properties.
|
||||
*
|
||||
* @param base object whose prototype to use as the created prototype object's prototype
|
||||
* @param properties additional properties to add to the created prototype object
|
||||
*/
|
||||
function inherit(base, properties) {
|
||||
var prot = Object.create(base.prototype);
|
||||
for (var p in properties) {
|
||||
prot[p] = properties[p];
|
||||
}
|
||||
return prot;
|
||||
}
|
||||
|
||||
module.exports = inherit;
|
Loading…
Add table
Add a link
Reference in a new issue