Skip to content

Commit

Permalink
Fix beforeDestroy hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniandre committed Jan 23, 2019
1 parent 7d852df commit 88932ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/vue-cal/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ export default {
},
beforeDestroy () {
const hasTouch = 'ontouchstart' in window
window.removeEventListener(hasTouch ? 'touchmove' : 'mousemove', this.onMouseMove, { passive: false })
window.removeEventListener(hasTouch ? 'touchend' : 'mouseup', this.onMouseUp)
},
Expand Down

0 comments on commit 88932ee

Please sign in to comment.