Match-id-02c30c435c688da20368ac4a0e1561f3d195c443
This commit is contained in:
parent
06752cdf27
commit
99684271e6
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue