Event off fixes (#9918)

* Added removes for all events

* Moved to beforeDestroy
This commit is contained in:
Keith Holliday
2018-02-01 10:14:21 -07:00
committed by GitHub
parent 7f8a9be766
commit 3e0a7c70ed
11 changed files with 38 additions and 21 deletions

View File

@@ -48,8 +48,8 @@ export default {
this.$root.$emit('bv::show::modal', 'broken-task-modal');
});
},
removed () {
this.$root.$remove('handle-broken-task');
beforeDestroy () {
this.$root.$off('handle-broken-task');
},
methods: {
...mapActions({