mirror of https://github.com/vuejs/core.git
refactor(reactivity): hasOwnProperty add this parameter (#7233)
hasOwnProperty adds this parameter and delete @ts-ignore
This commit is contained in:
parent
cd7c887b75
commit
13dc28aeff
|
@ -85,8 +85,7 @@ function createArrayInstrumentations() {
|
||||||
return instrumentations
|
return instrumentations
|
||||||
}
|
}
|
||||||
|
|
||||||
function hasOwnProperty(key: string) {
|
function hasOwnProperty(this: object, key: string) {
|
||||||
// @ts-ignore
|
|
||||||
const obj = toRaw(this)
|
const obj = toRaw(this)
|
||||||
track(obj, TrackOpTypes.HAS, key)
|
track(obj, TrackOpTypes.HAS, key)
|
||||||
return obj.hasOwnProperty(key)
|
return obj.hasOwnProperty(key)
|
||||||
|
|
Loading…
Reference in New Issue