From 0b05c5a41df9b7d946e1a495fe74d240d470bb21 Mon Sep 17 00:00:00 2001 From: Luca Degasperi Date: Thu, 29 Mar 2018 14:03:38 +0200 Subject: [PATCH] Update index.js --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 805ca65..d0ce53b 100644 --- a/src/index.js +++ b/src/index.js @@ -24,14 +24,14 @@ const Plugin = { _setDynamicContainer (dynamicContainer) { Plugin.dynamicContainer = dynamicContainer }, - show (modal, paramsOrProps, params) { + show (modal, paramsOrProps, params, events = null) { if (typeof modal === 'string') { Plugin.event.$emit('toggle', modal, true, paramsOrProps) } else { if (Plugin.dynamicContainer === null) { console.warn('[vue-js-modal] In order to render dynamic modals, a component must be present on the page') } else { - Plugin.dynamicContainer.add(modal, paramsOrProps, params) + Plugin.dynamicContainer.add(modal, paramsOrProps, params, events) } } },