From 99684271e65a8030477c7fcc7d46f6312e2f7943 Mon Sep 17 00:00:00 2001 From: * <8> Date: Thu, 27 Jan 2022 17:47:57 +0800 Subject: [PATCH] Match-id-02c30c435c688da20368ac4a0e1561f3d195c443 --- libs/horizon/src/event/customEvents/CustomBaseEvent.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/horizon/src/event/customEvents/CustomBaseEvent.ts b/libs/horizon/src/event/customEvents/CustomBaseEvent.ts index e58b91c4..3725c9c0 100644 --- a/libs/horizon/src/event/customEvents/CustomBaseEvent.ts +++ b/libs/horizon/src/event/customEvents/CustomBaseEvent.ts @@ -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() {