Skip to content

Commit

Permalink
reuse no function from utils (vuejs#4322)
Browse files Browse the repository at this point in the history
  • Loading branch information
defcc authored and yyx990803 committed Nov 25, 2016
1 parent 1903df4 commit db3e1c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/optimizer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import { makeMap, isBuiltInTag, cached } from 'shared/util'
import { makeMap, isBuiltInTag, cached, no } from 'shared/util'

let isStaticKey
let isPlatformReservedTag
Expand All @@ -21,7 +21,7 @@ const genStaticKeysCached = cached(genStaticKeys)
export function optimize (root: ?ASTElement, options: CompilerOptions) {
if (!root) return
isStaticKey = genStaticKeysCached(options.staticKeys || '')
isPlatformReservedTag = options.isReservedTag || (() => false)
isPlatformReservedTag = options.isReservedTag || no
// first pass: mark all non-static nodes.
markStatic(root)
// second pass: mark static roots.
Expand Down

0 comments on commit db3e1c7

Please sign in to comment.