Skip to content

Commit

Permalink
chore: simplify more
Browse files Browse the repository at this point in the history
`compatModelEventPrefix + event in props` can only be true if
`isCompatEnabled(DeprecationTypes.COMPONENT_V_MODEL, instance)`; see
`convertLegacyVModelProps`.
  • Loading branch information
markrian committed Jan 7, 2025
1 parent e2dc92d commit 9d1a0b2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/runtime-core/src/componentEmits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import {
import type { ComponentTypeEmits } from './apiSetupHelpers'
import { getModelModifiers } from './helpers/useModel'
import type { ComponentPublicInstance } from './componentPublicInstance'
import { DeprecationTypes, isCompatEnabled } from './compat/compatConfig'

export type ObjectEmitsOptions = Record<
string,
Expand Down Expand Up @@ -156,7 +155,6 @@ export function emit(
let modifiers
if (
__COMPAT__ &&
isCompatEnabled(DeprecationTypes.COMPONENT_V_MODEL, instance) &&
(isModelListener = compatModelEventPrefix + event in props)
) {
modifiers = props.modelModifiers
Expand Down

0 comments on commit 9d1a0b2

Please sign in to comment.