Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Commit 27f4603

Browse files
committed
Merge pull request #319 from webcomponents/ie-fakeload-async
Make IE 'fakeLoad' event async, to prevent reentrancy.
2 parents c22c0c4 + c228afa commit 27f4603

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/HTMLImports/parser.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,10 @@ var importParser = {
209209
}
210210
// dispatch a fake load event and continue parsing
211211
if (fakeLoad) {
212-
elt.dispatchEvent(new CustomEvent('load', {bubbles: false}));
212+
// Fire async, to prevent reentrancy
213+
setTimeout(function() {
214+
elt.dispatchEvent(new CustomEvent('load', {bubbles: false}));
215+
});
213216
}
214217
}
215218
},

0 commit comments

Comments
 (0)