Make modern build pass unit tests again.

Former-commit-id: 6269bdbaa7cd96217568504921da097c2352cef8
This commit is contained in:
John-David Dalton
2013-03-13 10:13:59 -07:00
parent 59f78c16b1
commit ac5d2a714e
3 changed files with 13 additions and 10 deletions

12
dist/lodash.js vendored
View File

@@ -2516,10 +2516,10 @@
var computed = -Infinity,
result = computed;
var index = -1,
length = collection ? collection.length : 0;
if (!callback && isArray(collection)) {
var index = -1,
length = collection.length;
if (!callback && typeof length == 'number') {
while (++index < length) {
var value = collection[index];
if (value > result) {
@@ -2585,10 +2585,10 @@
var computed = Infinity,
result = computed;
var index = -1,
length = collection ? collection.length : 0;
if (!callback && isArray(collection)) {
var index = -1,
length = collection.length;
if (!callback && typeof length == 'number') {
while (++index < length) {
var value = collection[index];
if (value < result) {