Just use arguments directly instead of array

This commit is contained in:
Andrew Stewart 2014-06-18 16:02:54 -07:00
parent a9b874a917
commit 5974eb80cd
1 changed files with 1 additions and 2 deletions

View File

@ -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);
};
};