Skip to content

Commit 0647e5c

Browse files
committed
include all *Event inheritance in event type lists
1 parent a5cc9c4 commit 0647e5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export function emitWebIDl(webidl: Browser.WebIdl, flavor: Flavor) {
152152
/// Distinct event type list, used in the "createEvent" function
153153
const distinctETypeList = distinct(
154154
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))
155+
.concat(allNonCallbackInterfaces.filter(i => i.extends && i.extends.endsWith("Event") && i.name.endsWith("Event")).map(i => i.name))
156156
).sort();
157157

158158
/// Interface name to its related eventhandler name list map

0 commit comments

Comments
 (0)