Skip to content

Commit

Permalink
[4.x] Clean up some event handlers (#9500)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Feb 9, 2024
1 parent 4b62dc1 commit e100f68
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/js/components/assets/Browser/Browser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@ export default {
this.$events.$on('editor-action-completed', this.actionCompleted);
},
destroyed() {
this.$events.$off('editor-action-started', this.actionStarted);
this.$events.$off('editor-action-completed', this.actionCompleted);
},
watch: {
initialContainer() {
Expand Down
4 changes: 4 additions & 0 deletions resources/js/components/data-list/Action.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ export default {
this.$events.$on('reset-action-modals', this.reset);
},
destroyed() {
this.$events.$off('reset-action-modals', this.reset);
},
methods: {
select() {
Expand Down
4 changes: 4 additions & 0 deletions resources/js/components/data-list/DataList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ export default {
this.$events.$on('clear-selections', this.clearSelections);
},
destroyed() {
this.$events.$off('clear-selections', this.clearSelections);
},
methods: {
setInitialSortColumn() {
Expand Down

0 comments on commit e100f68

Please sign in to comment.