Skip to content

Commit

Permalink
Merge pull request #19 from zanderi/master
Browse files Browse the repository at this point in the history
Fixed IE8 issue where substr -2 equates to 0 value returning whole strin...
  • Loading branch information
mattneary committed Jun 9, 2014
2 parents 280c9e6 + 837b17e commit 7d94edd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/jquery.countdown.js
Expand Up @@ -185,7 +185,7 @@ var formatCompute = function(d, options) {
};

// add leading zeros
var pad = function(x){return (1e15+""+x).substr(-2)};
var pad = function(x){return (1e15+""+x).slice(-2)};

var digits = [];
var intervals = [];
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.countdown.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7d94edd

Please sign in to comment.