Skip to content

Commit

Permalink
Fix for custom even firing
Browse files Browse the repository at this point in the history
  • Loading branch information
csuwildcat committed Feb 27, 2019
1 parent 0d67c5f commit fe457b0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions dist/x-tag-polyfilled.js
Expand Up @@ -232,10 +232,10 @@
new Promise(resolve => {
event.onFilter ? event.onFilter(this, e, ref, resolve) : resolve();
}).then(() => {
var target = e.target || this;
if (target._xtagLastEvent != e) {
target._xtagLastEvent = e;
xtag.fireEvent(target, type);
let fired = '_' + type + 'EventFired';
if (!e[fired]) {
e[fired] = true;
xtag.fireEvent(e.target || this, type);
}
})
}
Expand Down

0 comments on commit fe457b0

Please sign in to comment.