Merge with master

This commit is contained in:
Mariusz Nowak
2016-07-05 15:28:05 +02:00
6 changed files with 43 additions and 12 deletions

View File

@@ -39,7 +39,7 @@ module.exports = function (original, length, options) {
return cache[id];
}
}
if (args.length === 1) result = call.call(original, this, arg);
if (args.length === 1) result = call.call(original, this, args[0]);
else result = apply.call(original, this, args);
if (id === null) {
id = get(args);