chore: replace some type casts and fix variable and filename typos (#93)

This commit is contained in:
Carlos Rodrigues
2019-10-05 15:38:02 +01:00
committed by Evan You
parent 23ff681418
commit fbabae0c0a
10 changed files with 51 additions and 51 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 normlaizedStack: ComponentTraceStack = []
const normalizeStack: ComponentTraceStack = []
while (currentVNode) {
const last = normlaizedStack[0]
const last = normalizeStack[0]
if (last && last.vnode === currentVNode) {
last.recurseCount++
} else {
normlaizedStack.push({
normalizeStack.push({
vnode: currentVNode,
recurseCount: 0
})
@@ -82,7 +82,7 @@ function getComponentTrace(): ComponentTraceStack {
currentVNode = parentInstance && parentInstance.vnode
}
return normlaizedStack
return normalizeStack
}
function formatTrace(trace: ComponentTraceStack): string[] {