Skip to content

Commit

Permalink
Fix faulty validation check on numeric.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanrsmith committed Mar 12, 2012
1 parent fd0f3b1 commit 3a0e9aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinycon.js
Expand Up @@ -221,7 +221,7 @@
Tinycon.setBubble = function(num, colour){ Tinycon.setBubble = function(num, colour){


// validate // validate
if(isNaN(num)) return log('Bubble must be a number'); if(isNaN(parseFloat(num)) || !isFinite(num)) return log('Bubble must be a number');


drawFavicon(num, colour); drawFavicon(num, colour);
return this; return this;
Expand Down

0 comments on commit 3a0e9aa

Please sign in to comment.