File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -1068,19 +1068,17 @@ export function emitWebIdl(
10681068 const hasEventListener = iNameToEhList [ i . name ] ?. length ;
10691069 const ehParentCount = iNameToEhParents [ i . name ] ?. length ;
10701070
1071+ let target : Browser . Interface ;
10711072 if ( hasEventListener || ehParentCount > 1 ) {
1072- emitTypedEventHandler ( fPrefix , addOrRemove , i , optionsType ) ;
1073- return true ;
1073+ target = i ;
10741074 } else if ( ehParentCount === 1 ) {
1075- emitTypedEventHandler (
1076- fPrefix ,
1077- addOrRemove ,
1078- iNameToEhParents [ i . name ] [ 0 ] ,
1079- optionsType
1080- ) ;
1081- return true ;
1075+ target = iNameToEhParents [ i . name ] [ 0 ] ;
1076+ } else {
1077+ return false ;
10821078 }
1083- return false ;
1079+
1080+ emitTypedEventHandler ( fPrefix , addOrRemove , target , optionsType ) ;
1081+ return true ;
10841082 }
10851083 }
10861084
You can’t perform that action at this time.
0 commit comments