chore: simplify more

`compatModelEventPrefix + event in props` can only be true if
`isCompatEnabled(DeprecationTypes.COMPONENT_V_MODEL, instance)`; see
`convertLegacyVModelProps`.
This commit is contained in:
Mark Florian 2025-01-07 09:45:19 +00:00
parent e2dc92dc9a
commit 9d1a0b2ef0
No known key found for this signature in database
1 changed files with 0 additions and 2 deletions

View File

@ -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,
@ -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