Skip to content

Commit

Permalink
revert runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Apr 14, 2024
1 parent 460c970 commit 5e76c41
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions packages/runtime-vapor/src/componentEmits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,10 @@ export function emit(
// TODO: warn

let handlerName
let handler
for (let rawProp of rawProps) {
if (
(handler =
rawProp[(handlerName = toHandlerKey(event))] ||
// also try camelCase event handler (#2249)
rawProp[(handlerName = toHandlerKey(camelize(event)))])
) {
break
}
}
let handler =
rawProps[(handlerName = toHandlerKey(event))] ||
// also try camelCase event handler (#2249)
rawProps[(handlerName = toHandlerKey(camelize(event)))]
// for v-model update:xxx events, also trigger kebab-case equivalent
// for props passed via kebab-case
if (!handler && isModelListener) {
Expand Down

0 comments on commit 5e76c41

Please sign in to comment.