From 5fccd3ce1b02286e5b600454fdabeead73c87aae Mon Sep 17 00:00:00 2001 From: simeydotme Date: Fri, 29 Jan 2016 02:45:54 +0800 Subject: [PATCH] autoplay option bug - fixing small bug when setting `autoplay` option - it wasn't stopping autoplay. --- slick/slick.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/slick/slick.js b/slick/slick.js index ae1d2cd03..840f8685a 100644 --- a/slick/slick.js +++ b/slick/slick.js @@ -1755,9 +1755,8 @@ _.setPosition(); _.focusHandler(); - if ( _.options.autoplay ) { - _.autoPlay(); - } + _.paused = !_.options.autoplay; + _.autoPlay(); _.$slider.trigger('reInit', [_]);