From 72c5558471000615d17a9e744684ac20453ab77e Mon Sep 17 00:00:00 2001 From: Dustin Diaz Date: Tue, 10 May 2011 23:09:26 -0700 Subject: [PATCH] set "_" extern for use with Closure Compilers ADVANCED_OPTIMIZATIONS --- underscore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/underscore.js b/underscore.js index a0ad75eec..f7505825a 100644 --- a/underscore.js +++ b/underscore.js @@ -55,7 +55,7 @@ module.exports = _; _._ = _; } else { - root._ = _; + root['_'] = _; } // Current version. @@ -250,7 +250,7 @@ return a < b ? -1 : a > b ? 1 : 0; }), 'value'); }; - + // Groups the object's values by a criterion produced by an iterator _.groupBy = function(obj, iterator) { var result = {};