Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
fix(line-ripple): Remove potential memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp committed Aug 15, 2018
1 parent 990e566 commit 58d297b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/line-ripple/LineRipple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ export default {
mounted () {
this.mdcLineRipple = MDCLineRipple.attachTo(this.$el)
},
beforeDestroy () {
if (typeof this.mdcLineRipple !== 'undefined') {
this.mdcLineRipple.destroy()
}
},
methods: {
activate () {
this.mdcLineRipple.activate()
Expand Down

0 comments on commit 58d297b

Please sign in to comment.