Browse Source

compiler codegen improvement (#5024)

* remove unnecessary code

* improve compiler codegen

* change false to 0
dev
AchillesJ 8 years ago
committed by Evan You
parent
commit
59867ec6b8
  1. 6
      src/compiler/codegen/index.js

6
src/compiler/codegen/index.js

@ -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) : 0
return `[${children.map(genNode).join(',')}]${
checkSkip
? normalizationType ? `,${normalizationType}` : ''
: ''
normalizationType ? `,${normalizationType}` : ''
}`
}
}

Loading…
Cancel
Save