Skip to content

Commit

Permalink
Use separate args for stringification and memoized calls.
Browse files Browse the repository at this point in the history
Fixes #1874
  • Loading branch information
arantius committed Apr 8, 2014
1 parent a0d93c5 commit 678cde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/util/memoize.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function memoize(func, limit) {
var key = uneval(args);
if (key in cache) return cache[key];

var result = func.apply(null, args);
var result = func.apply(null, arguments);

cache[key] = result;

Expand Down

0 comments on commit 678cde5

Please sign in to comment.