From 63dd8f77e0d2a9fd5f2f25c38f7a2e53e87c7de7 Mon Sep 17 00:00:00 2001 From: Yev Vlasenko Date: Sat, 17 Feb 2018 19:31:10 +0000 Subject: [PATCH] Keeping componentName as class' field --- src/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index ef0a566..805ca65 100644 --- a/src/index.js +++ b/src/index.js @@ -16,7 +16,7 @@ const Plugin = { this.installed = true this.event = new Vue() this.dynamicContainer = null - + this.componentName = options.componentName || defaultComponentName /** * Plugin API */ @@ -46,8 +46,7 @@ const Plugin = { /** * Sets custom component name (if provided) */ - const componentName = options.componentName || defaultComponentName - Vue.component(componentName, Modal) + Vue.component(this.componentName, Modal) /** * Registration of component */