Skip to content

Commit

Permalink
Fixed negative index
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn van der Lee committed Jun 25, 2014
1 parent 8ad0e29 commit 2128994
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jquery.coverflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@
if (index === undefined) {
return this.options.index;
}

while (index < 0) {
index += this._getCovers().length;
}

this._setIndex(index, true);
},

Expand Down

0 comments on commit 2128994

Please sign in to comment.