src/slidy.js
function _setup() {
    slidesDOMEl.addEventListener(TRANSITION_END, onTransitionEnd)
    containerDOMEl.addEventListener('touchstart', onTouchstart, EVENT_OPTIONS)
    containerDOMEl.addEventListener('touchmove', onTouchmove, EVENT_OPTIONS)
    containerDOMEl.addEventListener('touchend', onTouchend, EVENT_OPTIONS)

    if (index !== 0) {
      _translate(0)
    }
  }
function _setup() {
    slidesDOMEl.addEventListener(TRANSITION_END, onTransitionEnd)
    containerDOMEl.addEventListener('touchstart', onTouchstart, EVENT_OPTIONS)
    containerDOMEl.addEventListener('touchmove', onTouchmove, EVENT_OPTIONS)
    containerDOMEl.addEventListener('touchend', onTouchend, EVENT_OPTIONS)

    if (index !== 0) {
      _translate(0)
    }
  }
function _setup ( ) { slidesDOMEl . addEventListener ( TRANSITION_END , onTransitionEnd ) containerDOMEl . addEventListener ( 'touchstart' , onTouchstart , EVENT_OPTIONS ) containerDOMEl . addEventListener ( 'touchmove' , onTouchmove , EVENT_OPTIONS ) containerDOMEl . addEventListener ( 'touchend' , onTouchend , EVENT_OPTIONS ) if ( index !== 0 ) { _translate ( 0 ) } }
public
setup function
public setup function