Minor refactoring

This commit is contained in:
euvl
2017-06-21 21:12:03 +01:00
parent 375ae806ae
commit 0090a77216
4 changed files with 15 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ const Plugin = {
this.installed = true
this.event = new Vue()
const $modal = {
Vue.prototype.$modal = {
show (name, params) {
Plugin.event.$emit('toggle', name, true, params)
},
@@ -23,7 +23,6 @@ const Plugin = {
}
}
Vue.prototype.$modal = $modal
Vue.component('modal', Modal)
}
}