Skip to content

Commit

Permalink
Small JS refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
dce committed Sep 11, 2009
1 parent 84ae8db commit 7aaacfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/javascripts/jquery.jquinote.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

slides.css({ "width": slideList.size() * container.width() });

slides.current = (location.hash == "") ? 0 : location.hash.substr(1);
slides.current = location.hash.substr(1) || 0;

slides.next = function() {
if (this.current < slideList.size() - 1) {
Expand Down

0 comments on commit 7aaacfb

Please sign in to comment.