]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: typo (#928)
authorysj16 <504427021@qq.com>
Mon, 6 Apr 2020 13:09:44 +0000 (21:09 +0800)
committerGitHub <noreply@github.com>
Mon, 6 Apr 2020 13:09:44 +0000 (09:09 -0400)
packages/reactivity/src/collectionHandlers.ts

index ba9b926732040dcc007e057d6457b1ec95a78fb1..40e4b476a42225e8a280fad1526e763eb489ec0d 100644 (file)
@@ -84,7 +84,7 @@ function set(this: MapTypes, key: unknown, value: unknown) {
     key = toRaw(key)
     hadKey = has.call(target, key)
   } else if (__DEV__) {
-    checkIdentitiyKeys(target, has, key)
+    checkIdentityKeys(target, has, key)
   }
 
   const oldValue = get.call(target, key)
@@ -105,7 +105,7 @@ function deleteEntry(this: CollectionTypes, key: unknown) {
     key = toRaw(key)
     hadKey = has.call(target, key)
   } else if (__DEV__) {
-    checkIdentitiyKeys(target, has, key)
+    checkIdentityKeys(target, has, key)
   }
 
   const oldValue = get ? get.call(target, key) : undefined
@@ -274,7 +274,7 @@ export const readonlyCollectionHandlers: ProxyHandler<CollectionTypes> = {
   get: createInstrumentationGetter(readonlyInstrumentations)
 }
 
-function checkIdentitiyKeys(
+function checkIdentityKeys(
   target: CollectionTypes,
   has: (key: unknown) => boolean,
   key: unknown