Permalink
Browse files

closed #16

Fixed issue where first param of the goTo method would break Revolver if
a string was passed to it.
  • Loading branch information...
johnnyfreeman committed May 23, 2012
1 parent c1b6916 commit caddc4564d5e5415f3e1fe5ff58eb92b5b0e9f18
Showing with 8 additions and 2 deletions.
  1. +3 −0 jquery.revolver.js
  2. +1 −1 jquery.revolver.min.js
  3. +3 −0 mootools.revolver.js
  4. +1 −1 mootools.revolver.min.js
View
@@ -358,6 +358,9 @@
Revolver.prototype.goTo = function(i, options)
{
+ // keep transition arithmetic from breaking
+ i = parseInt(i);
+
// bail out if already
// on the intended slide
if (this.disabled === true || i === this.currentSlide)
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -365,6 +365,9 @@
goTo: function(i, options)
{
+ // keep transition arithmetic from breaking
+ i = parseInt(i);
+
// bail out if already on the intended slide
// or the slider is disabled
if (this.disabled === true || i === this.currentSlide)
Oops, something went wrong.

0 comments on commit caddc45

Please sign in to comment.