Skip to content

Commit

Permalink
use underscore.js isNumber instead of isNaN to determine if value is …
Browse files Browse the repository at this point in the history
…a number.
  • Loading branch information
PUDRESCU committed Apr 30, 2014
1 parent a36229f commit f8c658d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2495,7 +2495,7 @@ var AppRouter = Backbone.Router.extend({
return countlyCommon.getShortNumber(context);
});
Handlebars.registerHelper('getFormattedNumber', function (context, options) {
if (isNaN(context)) {
if (!_.isNumber(context)) {
return context;
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/express/public/javascripts/min/countly.lib.js

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

0 comments on commit f8c658d

Please sign in to comment.