From af66136bd359014002c23ac371b1f5455cb72850 Mon Sep 17 00:00:00 2001 From: Wong Ho Chi Mark Date: Sat, 26 Dec 2015 10:56:42 +0800 Subject: [PATCH] initialSlide should be int --- src/slick.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slick.js b/src/slick.js index 92ce738..42e36ec 100644 --- a/src/slick.js +++ b/src/slick.js @@ -92,7 +92,7 @@ angular easing: scope.easing || 'linear', edgeFriction: scope.edgeFriction || 0.15, infinite: scope.infinite !== 'false', - initialSlide: scope.initialSlide || 0, + initialSlide: parseInt(scope.initialSlide) || 0, lazyLoad: scope.lazyLoad || 'ondemand', mobileFirst: scope.mobileFirst === 'true', pauseOnHover: scope.pauseOnHover !== 'false',