Just use arguments directly instead of array
This commit is contained in:
parent
a9b874a917
commit
5974eb80cd
|
@ -121,8 +121,7 @@ var Utils = module.exports = {
|
||||||
|
|
||||||
var fn = function(method) {
|
var fn = function(method) {
|
||||||
return base[method] = function() {
|
return base[method] = function() {
|
||||||
var args = arguments.length >= 1 ? [].slice.call(arguments, 0) : [];
|
return target[method].apply(target, arguments);
|
||||||
return target[method].apply(target, args);
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue