mirror of https://github.com/vuejs/core.git
wip: treat compat model listener as already declared
This commit is contained in:
parent
5566d39d46
commit
a75b00c558
|
@ -219,6 +219,11 @@ export function isEmitListener(
|
||||||
if (!options || !isOn(key)) {
|
if (!options || !isOn(key)) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (__COMPAT__ && key.startsWith(compatModelEventPrefix)) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
key = key.slice(2).replace(/Once$/, '')
|
key = key.slice(2).replace(/Once$/, '')
|
||||||
return (
|
return (
|
||||||
hasOwn(options, key[0].toLowerCase() + key.slice(1)) ||
|
hasOwn(options, key[0].toLowerCase() + key.slice(1)) ||
|
||||||
|
|
Loading…
Reference in New Issue