Skip to content

Commit

Permalink
chore: fix typo (#12894)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhang-dong committed Dec 6, 2022
1 parent 9dd006b commit ca11dc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/observer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { isReadonly, isRef, TrackOpTypes, TriggerOpTypes } from '../../v3'

const arrayKeys = Object.getOwnPropertyNames(arrayMethods)

const NO_INIITIAL_VALUE = {}
const NO_INITIAL_VALUE = {}

/**
* In some cases we may want to disable observation inside a component's
Expand Down Expand Up @@ -79,7 +79,7 @@ export class Observer {
const keys = Object.keys(value)
for (let i = 0; i < keys.length; i++) {
const key = keys[i]
defineReactive(value, key, NO_INIITIAL_VALUE, undefined, shallow, mock)
defineReactive(value, key, NO_INITIAL_VALUE, undefined, shallow, mock)
}
}
}
Expand Down Expand Up @@ -145,7 +145,7 @@ export function defineReactive(
const setter = property && property.set
if (
(!getter || setter) &&
(val === NO_INIITIAL_VALUE || arguments.length === 2)
(val === NO_INITIAL_VALUE || arguments.length === 2)
) {
val = obj[key]
}
Expand Down

0 comments on commit ca11dc6

Please sign in to comment.