mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Update vendors, builds, and docs.
Former-commit-id: 08cad493d719ec3ebaa85e0ff279c49f1e2b3655
This commit is contained in:
17
dist/lodash.compat.js
vendored
17
dist/lodash.compat.js
vendored
@@ -221,9 +221,7 @@
|
||||
typeCache = cache[type] || (cache[type] = {});
|
||||
|
||||
if (type == 'object') {
|
||||
if ((typeCache[key] || (typeCache[key] = [])).push(value) == this.array.length) {
|
||||
cache[type] = false;
|
||||
}
|
||||
(typeCache[key] || (typeCache[key] = [])).push(value);
|
||||
} else {
|
||||
typeCache[key] = true;
|
||||
}
|
||||
@@ -280,8 +278,13 @@
|
||||
*/
|
||||
function createCache(array) {
|
||||
var index = -1,
|
||||
length = array.length;
|
||||
length = array.length,
|
||||
first = array[0],
|
||||
last = array[length - 1];
|
||||
|
||||
if (first && typeof first == 'object' && last && typeof last == 'object') {
|
||||
return false;
|
||||
}
|
||||
var cache = getObject();
|
||||
cache['false'] = cache['null'] = cache['true'] = cache['undefined'] = false;
|
||||
|
||||
@@ -293,9 +296,7 @@
|
||||
while (++index < length) {
|
||||
result.push(array[index]);
|
||||
}
|
||||
return cache.object === false
|
||||
? (releaseObject(result), null)
|
||||
: result;
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5501,7 +5502,7 @@
|
||||
// avoid issues with Narwhal, IE conditional compilation, and the JS engine
|
||||
// embedded in Adobe products.
|
||||
// http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
|
||||
var sourceURL = '\n/*\n//@ sourceURL=' + (options.sourceURL || '/lodash/template/source[' + (templateCounter++) + ']') + '\n*/';
|
||||
var sourceURL = '\n/*\n//# sourceURL=' + (options.sourceURL || '/lodash/template/source[' + (templateCounter++) + ']') + '\n*/';
|
||||
|
||||
try {
|
||||
var result = Function(importsKeys, 'return ' + source + sourceURL).apply(undefined, importsValues);
|
||||
|
||||
Reference in New Issue
Block a user