Skip to content

Commit 3ea8089

Browse files
committed
rename isDuplicateKey
1 parent ddac6af commit 3ea8089

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Plugin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ const defaultOptions = {
99
const Plugin = () => ({
1010
install(Vue, options) {
1111
const _options = Object.assign({}, defaultOptions, options)
12-
const isDuplicateCmd = Vue.prototype[_options.key]
12+
const isDuplicateKey = Vue.prototype[_options.key]
1313
const isDuplicateComponent = Vue.options.components[_options.componentName]
1414

1515
if (isDuplicateComponent) {
16-
console.warn(isDuplicateCmd ? DUPLICATE_PLUGIN_COMPONENT : DUPLICATE_COMPONENT)
16+
console.warn(isDuplicateKey ? DUPLICATE_PLUGIN_COMPONENT : DUPLICATE_COMPONENT)
1717
} else {
18-
if (!isDuplicateCmd) {
18+
if (!isDuplicateKey) {
1919
bindPrototype(Vue, _options)
2020
}
2121
registComponent(Vue, _options)

0 commit comments

Comments
 (0)