2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-24 14:04:14 +03:00

Merge pull request #139 from ctimmerm/slice-arguments

Don't call slice on arguments
This commit is contained in:
Matt Zabriskie
2015-10-28 14:52:50 -06:00
+5 -1
View File
@@ -74,7 +74,11 @@ axios.interceptors = defaultInstance.interceptors;
// Helpers
function bind (fn, thisArg) {
return function () {
return fn.apply(thisArg, Array.prototype.slice.call(arguments));
var args = new Array(arguments.length);
for (var i = 0; i < args.length; i++) {
args[i] = arguments[i];
}
return fn.apply(thisArg, args);
};
}