Skip to content

Commit

Permalink
Merge pull request jashkenas#1526 from davidchambers/each
Browse files Browse the repository at this point in the history
use each (rather than _.each) internally
  • Loading branch information
michaelficarra committed Mar 20, 2014
2 parents 120283d + c93d5ff commit 227c052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@
};

// Functions for escaping and unescaping strings to/from HTML interpolation.
_.each(['escape', 'unescape'], function(method) {
each(['escape', 'unescape'], function(method) {
_[method] = function(string) {
if (string == null) return '';
return ('' + string).replace(entityRegexes[method], function(match) {
Expand Down

0 comments on commit 227c052

Please sign in to comment.