Skip to content

Commit ca11dc6

Browse files
authored
chore: fix typo (#12894)
1 parent 9dd006b commit ca11dc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/observer/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { isReadonly, isRef, TrackOpTypes, TriggerOpTypes } from '../../v3'
1919

2020
const arrayKeys = Object.getOwnPropertyNames(arrayMethods)
2121

22-
const NO_INIITIAL_VALUE = {}
22+
const NO_INITIAL_VALUE = {}
2323

2424
/**
2525
* In some cases we may want to disable observation inside a component's
@@ -79,7 +79,7 @@ export class Observer {
7979
const keys = Object.keys(value)
8080
for (let i = 0; i < keys.length; i++) {
8181
const key = keys[i]
82-
defineReactive(value, key, NO_INIITIAL_VALUE, undefined, shallow, mock)
82+
defineReactive(value, key, NO_INITIAL_VALUE, undefined, shallow, mock)
8383
}
8484
}
8585
}
@@ -145,7 +145,7 @@ export function defineReactive(
145145
const setter = property && property.set
146146
if (
147147
(!getter || setter) &&
148-
(val === NO_INIITIAL_VALUE || arguments.length === 2)
148+
(val === NO_INITIAL_VALUE || arguments.length === 2)
149149
) {
150150
val = obj[key]
151151
}

0 commit comments

Comments
 (0)