Skip to content

Commit

Permalink
Ensure that formatWithCommas doesn't error if the string is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Dale authored and Charles Jolley committed Apr 9, 2010
1 parent 61ceaa1 commit 7c88418
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion apps/sproutweets/controllers/user.js
Expand Up @@ -29,7 +29,6 @@ Sproutweets.userController = SC.ObjectController.create(
formatWithCommas: function(str) {
var n, ret = [];
if (!str) return '';

n = str.toString();

if (n.length < 4) return n;
Expand Down

0 comments on commit 7c88418

Please sign in to comment.