Skip to content

compiler codegen improvement #5024

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 5 commits into from
Feb 27, 2017
Merged

compiler codegen improvement #5024

merged 5 commits into from
Feb 27, 2017

Conversation

javoski
Copy link
Member

@javoski javoski commented Feb 27, 2017

Inside genChildren function, not need to invoke getNormalizationType() when checkSkip is false.

@@ -310,11 +310,9 @@ function genChildren (el: ASTElement, checkSkip?: boolean): string | void {
el.tag !== 'slot') {
return genElement(el)
}
const normalizationType = getNormalizationType(children)
const normalizationType = checkSkip ? getNormalizationType(children) : false
Copy link
Member

@yyx990803 yyx990803 Feb 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use 0 for the falsy value here so that this value is always a number?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's more reasonable because 0 also means no normalization needed

@yyx990803 yyx990803 merged commit 59867ec into vuejs:dev Feb 27, 2017
@yyx990803
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants