From 5974eb80cd99ba9e8fc4dc0bf9feb18892f75ad1 Mon Sep 17 00:00:00 2001 From: Andrew Stewart Date: Wed, 18 Jun 2014 16:02:54 -0700 Subject: [PATCH] Just use arguments directly instead of array --- lib/utils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index 5a7718f..e362976 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -121,8 +121,7 @@ var Utils = module.exports = { var fn = function(method) { return base[method] = function() { - var args = arguments.length >= 1 ? [].slice.call(arguments, 0) : []; - return target[method].apply(target, args); + return target[method].apply(target, arguments); }; };