feat: 第一次上传代码
This commit is contained in:
27
node_modules/lottie-web/player/js/utils/functionExtensions.js
generated
vendored
Normal file
27
node_modules/lottie-web/player/js/utils/functionExtensions.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
function extendPrototype(sources, destination) {
|
||||
var i;
|
||||
var len = sources.length;
|
||||
var sourcePrototype;
|
||||
for (i = 0; i < len; i += 1) {
|
||||
sourcePrototype = sources[i].prototype;
|
||||
for (var attr in sourcePrototype) {
|
||||
if (Object.prototype.hasOwnProperty.call(sourcePrototype, attr)) destination.prototype[attr] = sourcePrototype[attr];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getDescriptor(object, prop) {
|
||||
return Object.getOwnPropertyDescriptor(object, prop);
|
||||
}
|
||||
|
||||
function createProxyFunction(prototype) {
|
||||
function ProxyFunction() {}
|
||||
ProxyFunction.prototype = prototype;
|
||||
return ProxyFunction;
|
||||
}
|
||||
|
||||
export {
|
||||
extendPrototype,
|
||||
getDescriptor,
|
||||
createProxyFunction,
|
||||
};
|
||||
Reference in New Issue
Block a user