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

Commit

Permalink
Cleanup & bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikSerafin committed Sep 11, 2018
1 parent ea9059c commit fefb236
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Vue directive for custom scrollbar that uses native scroll behavior. Lightweight, performant and without dependencies.",
"author": "Dominik Serafin <[email protected]>",
"license": "MIT",
"version": "0.0.19",
"version": "0.0.20",
"private": false,
"repository": {
"type": "git",
Expand Down
5 changes: 1 addition & 4 deletions vuebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,11 +590,8 @@
function destroyScrollbar(el, options){
var options = options ? options : {};
var state = getState(el);
if (!state) return;

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 fefb236

Please sign in to comment.