Skip to content

Commit

Permalink
Added vuejs instance a name #141
Browse files Browse the repository at this point in the history
  • Loading branch information
euvl committed Oct 20, 2019
1 parent 59c8fb7 commit f7b2683
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Notifications.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ const Component = {
},
},
methods: {
destroyIfNecessary(item){
if(this.closeOnClick){
this.destroy(item);
destroyIfNecessary (item) {
if (this.closeOnClick) {
this.destroy(item)
}
},
addItem (event) {
Expand Down
3 changes: 2 additions & 1 deletion src/events.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import Vue from 'vue'
export const events = new Vue()

export const events = new Vue({ name: 'vue-notification' })

0 comments on commit f7b2683

Please sign in to comment.