Skip to content

Commit

Permalink
use all of the arguments in default memoize hasher. fixes caolan#575
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey Smolenchuk committed Jul 7, 2014
1 parent 2de849f commit 779e938
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,11 @@
var memo = {};
var queues = {};
hasher = hasher || function (x) {
return x;
if (arguments.length <= 1) {
return x;
} else {
return Array.prototype.slice.call(arguments);
}
};
var memoized = function () {
var args = Array.prototype.slice.call(arguments);
Expand Down

0 comments on commit 779e938

Please sign in to comment.