chore: remove superfluous code (#5683)

This commit is contained in:
zhoulixiang 2022-04-13 17:30:22 +08:00 committed by GitHub
parent fa1d14c2c8
commit 57ca32b096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,6 @@ function parseName(name: string): [string, EventListenerOptions | undefined] {
while ((m = name.match(optionsModifierRE))) {
name = name.slice(0, name.length - m[0].length)
;(options as any)[m[0].toLowerCase()] = true
options
}
}
return [hyphenate(name.slice(2)), options]