We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
for
of
1 parent 4b6a263 commit d7f560cCopy full SHA for d7f560c
1 file changed
src/index.ts
@@ -171,7 +171,9 @@ export default class IncludeFragmentElement extends HTMLElement {
171
// Functional stand in for the W3 spec "queue a task" paradigm
172
async #task(eventsToDispatch: string[]): Promise<void> {
173
await new Promise(resolve => setTimeout(resolve, 0))
174
- eventsToDispatch.forEach(eventType => this.dispatchEvent(new Event(eventType)))
+ for (const eventType of eventsToDispatch) {
175
+ this.dispatchEvent(new Event(eventType))
176
+ }
177
}
178
179
async #fetchDataWithEvents(): Promise<string> {
0 commit comments