set "_" extern for use with Closure Compilers ADVANCED_OPTIMIZATIONS

This commit is contained in:
Dustin Diaz
2011-05-10 23:09:26 -07:00
parent 5951d354af
commit 72c5558471

View File

@@ -55,7 +55,7 @@
module.exports = _; module.exports = _;
_._ = _; _._ = _;
} else { } else {
root._ = _; root['_'] = _;
} }
// Current version. // Current version.
@@ -250,7 +250,7 @@
return a < b ? -1 : a > b ? 1 : 0; return a < b ? -1 : a > b ? 1 : 0;
}), 'value'); }), 'value');
}; };
// Groups the object's values by a criterion produced by an iterator // Groups the object's values by a criterion produced by an iterator
_.groupBy = function(obj, iterator) { _.groupBy = function(obj, iterator) {
var result = {}; var result = {};