Match-id-02c30c435c688da20368ac4a0e1561f3d195c443

This commit is contained in:
* 2022-01-27 17:47:57 +08:00 committed by *
parent 06752cdf27
commit 99684271e6
1 changed files with 4 additions and 2 deletions

View File

@ -35,9 +35,11 @@ function extendAttribute(target, source) {
];
const length = attributes.length;
let attr;
let type;
for (let i = 0; i < length; i++) {
const attr = attributes[i];
const type = source[attr];
attr = attributes[i];
type = source[attr];
if (type !== 'undefined') {
if (type === 'function') {
target[attr] = function() {