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 = _;
_._ = _;
} 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 = {};