Permalink
Browse files

fix(carousel): clear timers on beforeDestroy

  • Loading branch information...
tmorehouse authored and pi0 committed Nov 28, 2017
1 parent 84c21e3 commit fa1c083cad4495d6020b9363aaceaab1f084bd25
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/components/carousel/carousel.js
@@ -453,9 +453,10 @@ export default {
attributeFilter: [ 'id' ]
})
},
destroyed () {
beforeDestroy () {
clearInterval(this.intervalId)
clearTimeout(this._animationTimeout)
this.intervalId = null
this._animationTimeout = null
}
}

0 comments on commit fa1c083

Please sign in to comment.