Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
elimination of a series of errors when using the `v-bar + v-if/v-else`
  • Loading branch information
wormen authored and DominikSerafin committed Sep 11, 2018
1 parent 49e81de commit ea9059c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vuebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,10 @@
var options = options ? options : {};
var state = getState(el);

if (!state) {
return;
}

// clear events
state.dragger.removeEventListener('mousedown', state.barMousedown, 0);
state.el2.removeEventListener('scroll', state.scrollHandler, 0);
Expand Down

0 comments on commit ea9059c

Please sign in to comment.