Skip to content

Commit e98ee4d

Browse files
committed
fix: remove superfluous code
1 parent 245230e commit e98ee4d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/runtime-dom/src/modules/events.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,8 @@ function parseName(name: string): [string, EventListenerOptions | undefined] {
9696
options = {}
9797
let m
9898
while ((m = name.match(optionsModifierRE))) {
99-
name = name.slice(0, name.length - m[0].length)
100-
;(options as any)[m[0].toLowerCase()] = true
101-
options
99+
name = name.slice(0, name.length - m[0].length);
100+
(options as any)[m[0].toLowerCase()] = true
102101
}
103102
}
104103
return [hyphenate(name.slice(2)), options]

0 commit comments

Comments
 (0)