Bump to v3.4.0.

This commit is contained in:
John-David Dalton
2015-12-16 17:48:03 -08:00
parent 7a82a3d77b
commit 4ce1d5ddd3
50 changed files with 879 additions and 584 deletions

View File

@@ -61,13 +61,14 @@ define(['../internal/MapCache'], function(MapCache) {
throw new TypeError(FUNC_ERROR_TEXT);
}
var memoized = function() {
var cache = memoized.cache,
key = resolver ? resolver.apply(this, arguments) : arguments[0];
var args = arguments,
cache = memoized.cache,
key = resolver ? resolver.apply(this, args) : args[0];
if (cache.has(key)) {
return cache.get(key);
}
var result = func.apply(this, arguments);
var result = func.apply(this, args);
cache.set(key, result);
return result;
};