Permalink
Browse files

Fixed issue #17

  • Loading branch information...
1 parent 613e690 commit cb6f1ec17eca49127459339536bb32d9ce3223ea @wieringen committed Feb 22, 2015
Showing with 4 additions and 5 deletions.
  1. +2 −3 lib/jquery.tinycarousel.js
  2. +1 −1 package.json
  3. +1 −1 tinycarousel.jquery.json
@@ -210,7 +210,7 @@
* @param {Number} [index] The slide to move to.
*/
this.move = function(index) {
- slideIndex = index || self.slideCurrent;
+ slideIndex = isNaN(index) ? self.slideCurrent : index;
self.slideCurrent = slideIndex % self.slidesTotal;
if(slideIndex < 0) {
@@ -222,7 +222,6 @@
self.slideCurrent = slideIndex = 1;
$overview.css(posiLabel, 0);
}
-
contentStyle[posiLabel] = -slideIndex * slideSize;
$overview.animate(
@@ -286,4 +285,4 @@
}
});
};
-}));
+}));
View
@@ -1,6 +1,6 @@
{
"name": "tinycarousel",
- "version": "2.1.7",
+ "version": "2.1.8",
"description": "A lightweight cross browser jQuery based infinite carousel",
"homepage": "https://baijs.com/tinycarousel",
"main": "lib/jquery.tinycarousel.js",
@@ -1,7 +1,7 @@
{
"name": "tinycarousel",
"title": "Tiny Carousel",
- "version": "2.1.7",
+ "version": "2.1.8",
"description": "A lightweight responsive infinite carousel.",
"homepage": "http://www.baijs.com/tinycarousel",
"repository": {

0 comments on commit cb6f1ec

Please sign in to comment.