Skip to content

Commit

Permalink
I love comments - explaining parseInt usage
Browse files Browse the repository at this point in the history
  • Loading branch information
brianarn committed Apr 19, 2010
1 parent a254bfb commit 97eaa1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions slidekit.js
Expand Up @@ -309,6 +309,7 @@
function transSlide(prevEl, nextEl) {
var prevDelay, nextDelay;

// Had to parseInt -- for some reason, the second *always* came back string
prevDelay = parseInt(prevEl.getAttribute(DATA_DELAY)) || DEFAULT_DELAY;
nextDelay = parseInt(nextEl.getAttribute(DATA_DELAY)) || DEFAULT_DELAY;

Expand Down

0 comments on commit 97eaa1d

Please sign in to comment.