Fix large array optimization in baseDifference.

This commit is contained in:
John-David Dalton
2014-01-20 00:12:16 -08:00
parent a3d18d0429
commit f4de7422b3
5 changed files with 18 additions and 17 deletions

4
dist/lodash.js vendored
View File

@@ -1097,7 +1097,7 @@
length = array ? array.length : 0,
result = [];
if (createCache && indexOf === baseIndexOf && length >= LARGE_ARRAY_SIZE) {
if (createCache && values && indexOf === baseIndexOf && values.length >= LARGE_ARRAY_SIZE) {
indexOf = cacheIndexOf;
values = createCache(values);
}
@@ -7208,7 +7208,7 @@
/*--------------------------------------------------------------------------*/
// expose Lo-Dash
// export Lo-Dash
var _ = runInContext();
// some AMD build optimizers like r.js check for condition patterns like the following: