Skip to content

Commit db3e1c7

Browse files
defccyyx990803
authored andcommitted
reuse no function from utils (vuejs#4322)
1 parent 1903df4 commit db3e1c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/optimizer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* @flow */
22

3-
import { makeMap, isBuiltInTag, cached } from 'shared/util'
3+
import { makeMap, isBuiltInTag, cached, no } from 'shared/util'
44

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

0 commit comments

Comments
 (0)