diff --git a/src/compiler/optimizer.js b/src/compiler/optimizer.js index dc70181ec81..35ecf6e52e1 100644 --- a/src/compiler/optimizer.js +++ b/src/compiler/optimizer.js @@ -1,6 +1,6 @@ /* @flow */ -import { makeMap, isBuiltInTag, cached } from 'shared/util' +import { makeMap, isBuiltInTag, cached, no } from 'shared/util' let isStaticKey let isPlatformReservedTag @@ -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.