Pārlūkot izejas kodu

style: fix typos in comment (#1869)

Alan Wang 4 gadi atpakaļ
vecāks
revīzija
7ff8ff8c31
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/store.js

+ 1 - 1
src/store.js

@@ -289,7 +289,7 @@ function resetStoreState (store, state, hot) {
   const computedCache = {}
   const computedCache = {}
   forEachValue(wrappedGetters, (fn, key) => {
   forEachValue(wrappedGetters, (fn, key) => {
     // use computed to leverage its lazy-caching mechanism
     // use computed to leverage its lazy-caching mechanism
-    // direct inline function use will lead to closure preserving oldVm.
+    // direct inline function use will lead to closure preserving oldState.
     // using partial to return function with only arguments preserved in closure environment.
     // using partial to return function with only arguments preserved in closure environment.
     computedObj[key] = partial(fn, store)
     computedObj[key] = partial(fn, store)
     computedCache[key] = computed(() => computedObj[key]())
     computedCache[key] = computed(() => computedObj[key]())