We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5cc9c4 commit 0647e5cCopy full SHA for 0647e5c
src/emitter.ts
@@ -152,7 +152,7 @@ export function emitWebIDl(webidl: Browser.WebIdl, flavor: Flavor) {
152
/// Distinct event type list, used in the "createEvent" function
153
const distinctETypeList = distinct(
154
flatMap(allNonCallbackInterfaces, i => i.events ? i.events.event.map(e => e.type) : [])
155
- .concat(allNonCallbackInterfaces.filter(i => (i.extends === "Event" || i.extends === "UIEvent") && i.name.endsWith("Event")).map(i => i.name))
+ .concat(allNonCallbackInterfaces.filter(i => i.extends && i.extends.endsWith("Event") && i.name.endsWith("Event")).map(i => i.name))
156
).sort();
157
158
/// Interface name to its related eventhandler name list map
0 commit comments