Update index.js

This commit is contained in:
Luca Degasperi
2018-03-29 14:04:48 +02:00
committed by GitHub
parent fc89c464f4
commit 1b3f321fea

View File

@@ -24,7 +24,7 @@ const Plugin = {
_setDynamicContainer (dynamicContainer) { _setDynamicContainer (dynamicContainer) {
Plugin.dynamicContainer = dynamicContainer Plugin.dynamicContainer = dynamicContainer
}, },
show (modal, paramsOrProps, params, events = null) { show (modal, paramsOrProps, params, events = {}) {
if (typeof modal === 'string') { if (typeof modal === 'string') {
Plugin.event.$emit('toggle', modal, true, paramsOrProps) Plugin.event.$emit('toggle', modal, true, paramsOrProps)
} else { } else {