Skip to content

Commit fe457b0

Browse files
committed
Fix for custom even firing
1 parent 0d67c5f commit fe457b0

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

dist/x-tag-polyfilled.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@
232232
new Promise(resolve => {
233233
event.onFilter ? event.onFilter(this, e, ref, resolve) : resolve();
234234
}).then(() => {
235-
var target = e.target || this;
236-
if (target._xtagLastEvent != e) {
237-
target._xtagLastEvent = e;
238-
xtag.fireEvent(target, type);
235+
let fired = '_' + type + 'EventFired';
236+
if (!e[fired]) {
237+
e[fired] = true;
238+
xtag.fireEvent(e.target || this, type);
239239
}
240240
})
241241
}

0 commit comments

Comments
 (0)