Skip to content

Commit

Permalink
lowercase component names before checking for native tag warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 16, 2016
1 parent 2bb1504 commit 6a3430d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/util/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ function normalizeComponents (options: Object) {
const components = options.components
let def
for (const key in components) {
if (isBuiltInTag(key) || config.isReservedTag(key)) {
const lower = key.toLowerCase()
if (isBuiltInTag(lower) || config.isReservedTag(lower)) {
process.env.NODE_ENV !== 'production' && warn(
'Do not use built-in or reserved HTML elements as component ' +
'id: ' + key
Expand Down

0 comments on commit 6a3430d

Please sign in to comment.