feat(runtime-core): improve warning for extraneous event listeners (#1005)

fix #1001
This commit is contained in:
Andrew Talbot
2020-04-20 16:40:59 -04:00
committed by GitHub
parent dece6102aa
commit cebad64d22
3 changed files with 119 additions and 20 deletions

View File

@@ -490,7 +490,9 @@ function finishComponentSetup(
const attrHandlers: ProxyHandler<Data> = {
get: (target, key: string) => {
markAttrsAccessed()
if (__DEV__) {
markAttrsAccessed()
}
return target[key]
},
set: () => {