From 440a78b6910e669bad8de2cddf394e2f57081db0 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 9 Mar 2018 21:47:37 +0530 Subject: [PATCH] enable timeout --- example/example.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/example.js b/example/example.js index 6554041..3323680 100644 --- a/example/example.js +++ b/example/example.js @@ -26,8 +26,8 @@ function go(idx) { clearTimeout(timeout) timeout = null } - //timeout = setTimeout(next, Math.round(slides[current].dataset.duration) * 1000) - // + timeout = setTimeout(next, Math.round(slides[current].dataset.duration) * 1000) + stop(old) start(current) }