Skip to content

Mass typo fix #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Oct 5, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix typo in warning.ts
  • Loading branch information
iNerV committed Oct 5, 2019
commit 70088ea4b42b869ba3cc6272932f5b284b9bbe67
8 changes: 4 additions & 4 deletions packages/runtime-core/src/warning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 normalizedStack: ComponentTraceStack = []

while (currentVNode) {
const last = normlaizedStack[0]
const last = normalizedStack[0]
if (last && last.vnode === currentVNode) {
last.recurseCount++
} else {
normlaizedStack.push({
normalizedStack.push({
vnode: currentVNode,
recurseCount: 0
})
Expand All @@ -82,7 +82,7 @@ function getComponentTrace(): ComponentTraceStack {
currentVNode = parentInstance && parentInstance.vnode
}

return normlaizedStack
return normalizedStack
}

function formatTrace(trace: ComponentTraceStack): string[] {
Expand Down