From eff552f4fc9dd711228c0f79d6a1dfe7c29e88b9 Mon Sep 17 00:00:00 2001 From: Ruben M Date: Wed, 7 Oct 2015 18:11:34 +0200 Subject: [PATCH] A $timeout is worth only of the delay You have no delay set for timeout , because of that in some case we face bad initialization because of not proper sync and miss timing . Please merge it with a fixed value or add a default value and put it to settings. --- dist/slick.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/slick.js b/dist/slick.js index e9da126..bb0a9d4 100644 --- a/dist/slick.js +++ b/dist/slick.js @@ -140,7 +140,7 @@ angular.module('slick', []).directive('slick', [ return slider.slick('slickGoTo', newVal); } }); - }); + },100); }; if (scope.initOnload) { isInitialized = false; @@ -159,4 +159,4 @@ angular.module('slick', []).directive('slick', [ } }; } -]); \ No newline at end of file +]);