Skip to content

Commit

Permalink
autoplay option bug
Browse files Browse the repository at this point in the history
- fixing small bug when setting `autoplay` option
- it wasn't stopping autoplay.
  • Loading branch information
simeydotme committed Jan 28, 2016
1 parent e0105ec commit 5fccd3c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions slick/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -1755,9 +1755,8 @@
_.setPosition();
_.focusHandler();

if ( _.options.autoplay ) {
_.autoPlay();
}
_.paused = !_.options.autoplay;
_.autoPlay();

_.$slider.trigger('reInit', [_]);

Expand Down

0 comments on commit 5fccd3c

Please sign in to comment.