Update vendors, builds, and docs.

Former-commit-id: 08cad493d719ec3ebaa85e0ff279c49f1e2b3655
This commit is contained in:
John-David Dalton
2013-07-03 23:14:06 -07:00
parent 112cdb4842
commit 63a1c8b63e
25 changed files with 4175 additions and 1522 deletions

17
dist/lodash.compat.js vendored
View File

@@ -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);