Skip to content

Commit

Permalink
chore: fix flow
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Nov 3, 2017
1 parent 5a9da95 commit ad673e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/optimizing-compiler/optimizer.js
Expand Up @@ -130,11 +130,11 @@ function hasCustomDirective (node: ASTNode): ?boolean {

// <select v-model> cannot be optimized because it requires a runtime check
// to determine proper selected option
function isSelectWithModel (node: ASTNode): ?boolean {
function isSelectWithModel (node: ASTNode): boolean {
return (
node.type === 1 &&
node.tag === 'select' &&
node.directives &&
node.directives != null &&
node.directives.some(d => d.name === 'model')
)
}

0 comments on commit ad673e1

Please sign in to comment.