code: function destroyScrollbar(el, options){
              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);
              state.el2.removeEventListener('wheel', state.wheelHandler, 0);
              window.removeEventListener('resize', state.windowResize, 0);
  
              // disconnect mutation observer
              state.mutationObserver ? state.mutationObserver.disconnect() : null;
  
              // clear el1 classes
              removeClass(state.el1, state.config.el1Class);
              removeClass(state.el1, state.config.el1ScrollVisibleClass);
              removeClass(state.el1, state.config.el1ScrollInvisibleClass);
              removeClass(state.el1, state.config.el1ScrollingClass);
              removeClass(state.el1, state.config.el1ScrollingPhantomClass);
              removeClass(state.el1, state.config.el1DraggingClass);
  
              // clear el1 styles
              if (options.clearStyles) {
                  state.el1.style.position = '';
                  state.el1.style.overflow = '';
              }
  
              // clear el2 classes
              removeClass(state.el2, state.config.el2Class);
  
              // clear el2 styles
              if (options.clearStyles) {
                  state.el2.style.display = '';
                  state.el2.style.overflowX = '';
                  state.el2.style.overflowY = '';
                  state.el2.style.msOverflowStyle = '';
                  state.el2.style.height = '';
                  state.el2.style.width = '';
              }
  
              // clear dragger
              state.dragger.removeChild(state.dragger.firstChild);
              state.el1.removeChild(state.dragger);
  
              // clear timeouts that may be still running
              state.scrollingPhantomClassTimeout ?
                  clearTimeout(state.scrollingPhantomClassTimeout) : null;
              state.draggingPhantomClassTimeout ?
                  clearTimeout(state.draggingPhantomClassTimeout) : null;
  
              // delete state object from element
              delete el._vuebarState;
  
          }
docs: /*------------------------------------*\
  Destroy Scrollbar
  \*------------------------------------