closure-compiler comment, plus semicolons.

This commit is contained in:
Jeremy Ashkenas
2011-05-11 13:08:59 -04:00
parent 379d177a7e
commit bf6098f986

View File

@@ -55,6 +55,7 @@
module.exports = _; module.exports = _;
_._ = _; _._ = _;
} else { } else {
// Exported as a string, for Closure Compiler "advanced" mode.
root['_'] = _; root['_'] = _;
} }
@@ -256,10 +257,10 @@
var result = {}; var result = {};
each(obj, function(value, index) { each(obj, function(value, index) {
var key = iterator(value, index); var key = iterator(value, index);
(result[key] || (result[key] = [])).push(value) (result[key] || (result[key] = [])).push(value);
}); });
return result; return result;
} };
// Use a comparator function to figure out at what index an object should // Use a comparator function to figure out at what index an object should
// be inserted so as to maintain order. Uses binary search. // be inserted so as to maintain order. Uses binary search.