Skip to content

Commit

Permalink
Fixes bug in previous commit which failed to cast the currentPanel va…
Browse files Browse the repository at this point in the history
…lue to a number.
  • Loading branch information
dcporter committed Mar 26, 2014
1 parent 2b9296f commit 2a413b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/js/script.js
Expand Up @@ -91,7 +91,7 @@ app.carousel = (function() {
$buttons = $carousel.find('button'),
$tray = $carousel.find('.tray'),
$trayLinks = $tray.find('a'),
currentPanel = $.cookie('scPanel') || 0;
currentPanel = parseInt($.cookie('scPanel'), 10) || 0;

var gotoPanel = function(id, force) {
var $currentPanel, $oldPanels, $otherPanels;
Expand Down

0 comments on commit 2a413b8

Please sign in to comment.