lib/core/slider.js
function moveTo(priv, index) {
  check(priv.started, 'slider.started').is.True();
  check(index, 'index').is.inRange(0, priv.slides.length)();

  var toIndex = index <= priv.slides.length? index % priv.slides.length: index;
  if (priv.toIndex === toIndex) {
    return;
  }

  removeTempClasses(priv);
  removeMarkers(priv);

  priv.fromIndex = priv.toIndex;
  priv.toIndex = toIndex;

  addMarkers(priv);
  addTempClasses(priv);

  priv.phaser.startTransition();
  emitEvent(priv, slidechange(priv.fromIndex, priv.toIndex));
}
function moveTo(priv, index) {
  check(priv.started, 'slider.started').is.True();
  check(index, 'index').is.inRange(0, priv.slides.length)();

  var toIndex = index <= priv.slides.length? index % priv.slides.length: index;
  if (priv.toIndex === toIndex) {
    return;
  }

  removeTempClasses(priv);
  removeMarkers(priv);

  priv.fromIndex = priv.toIndex;
  priv.toIndex = toIndex;

  addMarkers(priv);
  addTempClasses(priv);

  priv.phaser.startTransition();
  emitEvent(priv, slidechange(priv.fromIndex, priv.toIndex));
}
function moveTo ( priv , index ) { check ( priv . started , 'slider.started' ) . is . True ( ) ; check ( index , 'index' ) . is . inRange ( 0 , priv . slides . length ) ( ) ; var toIndex = index <= priv . slides . length ? index % priv . slides . length : index ; if ( priv . toIndex === toIndex ) { return ; } removeTempClasses ( priv ) ; removeMarkers ( priv ) ; priv . fromIndex = priv . toIndex ; priv . toIndex = toIndex ; addMarkers ( priv ) ; addTempClasses ( priv ) ; priv . phaser . startTransition ( ) ; emitEvent ( priv , slidechange ( priv . fromIndex , priv . toIndex ) ) ; }
Moves slider slide of given index.

@param {Number} index index of the slide that slider will be moved to
@precondition ${link Slider.prototype.start} was called on this slider

@fqn Slider.prototype.moveTo
Moves slider slide of given index .