chore: fix typos (#103)

This commit is contained in:
Vladimir
2019-10-05 21:48:54 +07:00
committed by Evan You
parent ec8f7c6375
commit f48a2ffc76
10 changed files with 26 additions and 26 deletions

View File

@@ -65,14 +65,14 @@ function getComponentTrace(): ComponentTraceStack {
// we can't just use the stack because it will be incomplete during updates
// that did not start from the root. Re-construct the parent chain using
// instance parent pointers.
const normalizeStack: ComponentTraceStack = []
const normalizedStack: ComponentTraceStack = []
while (currentVNode) {
const last = normalizeStack[0]
const last = normalizedStack[0]
if (last && last.vnode === currentVNode) {
last.recurseCount++
} else {
normalizeStack.push({
normalizedStack.push({
vnode: currentVNode,
recurseCount: 0
})
@@ -82,7 +82,7 @@ function getComponentTrace(): ComponentTraceStack {
currentVNode = parentInstance && parentInstance.vnode
}
return normalizeStack
return normalizedStack
}
function formatTrace(trace: ComponentTraceStack): string[] {