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

3
dist/index.js vendored
View File

@@ -95,7 +95,7 @@ var Plugin = {
this.installed = true;
this.event = new Vue();
var $modal = {
Vue.prototype.$modal = {
show: function show(name, params) {
Plugin.event.$emit('toggle', name, true, params);
},
@@ -107,7 +107,6 @@ var Plugin = {
}
};
Vue.prototype.$modal = $modal;
Vue.component('modal', _Modal2.default);
}
};

3
dist/ssr.index.js vendored
View File

@@ -95,7 +95,7 @@ var Plugin = {
this.installed = true;
this.event = new Vue();
var $modal = {
Vue.prototype.$modal = {
show: function show(name, params) {
Plugin.event.$emit('toggle', name, true, params);
},
@@ -107,7 +107,6 @@ var Plugin = {
}
};
Vue.prototype.$modal = $modal;
Vue.component('modal', _Modal2.default);
}
};