From ce65afea99aebe742defa05486855cb7e6fd54a9 Mon Sep 17 00:00:00 2001 From: Chloe Chen Date: Wed, 8 Apr 2015 12:31:05 +1000 Subject: [PATCH] data0index(indexLast) miss parseint --- scrollIt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrollIt.js b/scrollIt.js index 2985271..ec37d76 100644 --- a/scrollIt.js +++ b/scrollIt.js @@ -32,7 +32,7 @@ */ var settings = $.extend(defaults, options), active = 0, - lastIndex = $('[data-scroll-index]:last').attr('data-scroll-index'); + lastIndex = parseInt($('[data-scroll-index]:last').attr('data-scroll-index')); /* * METHODS