Skip to content

Commit

Permalink
Remove _.getTime alias, comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Jan 21, 2014
1 parent 11981b7 commit 61050b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions underscore.js
Expand Up @@ -1106,8 +1106,8 @@
return min + Math.floor(Math.random() * (max - min + 1));
};

//use the faster Date.now if available.
_.now = _.getTime = Date.now || function() { return +new Date; };
// A (possibly faster) way to get the current timestamp as an integer.
_.now = Date.now || function() { return +new Date; };

// List of HTML entities for escaping.
var entityMap = {
Expand Down

0 comments on commit 61050b8

Please sign in to comment.