From fc0984eda5b67fd808dabcc340fe8f5aa12d0f22 Mon Sep 17 00:00:00 2001 From: Cathrine Vaage Date: Tue, 4 Jun 2019 18:30:11 +0200 Subject: [PATCH] fix: changes name casing in Vue.component calls --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 8580aa5..17681b5 100644 --- a/src/index.js +++ b/src/index.js @@ -19,7 +19,7 @@ Object.defineProperty(InfiniteLoading, 'install', { Object.assign(config.system, options && options.system); // register component - Vue.component('infinite-loading', InfiniteLoading); + Vue.component('InfiniteLoading', InfiniteLoading); syncModeFromVue(Vue); }, @@ -28,7 +28,7 @@ Object.defineProperty(InfiniteLoading, 'install', { // register component automatically if there has global Vue /* istanbul ignore else */ if (typeof window !== 'undefined' && window.Vue) { - window.Vue.component('infinite-loading', InfiniteLoading); + window.Vue.component('InfiniteLoading', InfiniteLoading); syncModeFromVue(window.Vue); }