aboutsummaryrefslogtreecommitdiffstats
path: root/src/deferred.js
diff options
context:
space:
mode:
authorSindre Sorhus <sindresorhus@gmail.com>2012-03-13 14:39:40 +0100
committerDave Methvin <dave.methvin@gmail.com>2012-04-04 23:22:15 -0400
commitd5ee856a44eff3f07162cf7eb1181b58d3a1c6ff (patch)
tree2cc23b6e9be9a455af92e1a0850cb3f30a75fc36 /src/deferred.js
parent22ad8723ce07569a9b039c7901f29e86ad14523c (diff)
downloadjquery-d5ee856a44eff3f07162cf7eb1181b58d3a1c6ff.tar.gz
jquery-d5ee856a44eff3f07162cf7eb1181b58d3a1c6ff.zip
Remove moot second argument from `slice.call()`
The zeroes were added to fix http://bugs.jquery.com/ticket/4942 but those browsers are no longer supported.
Diffstat (limited to 'src/deferred.js')
-rw-r--r--src/deferred.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/deferred.js b/src/deferred.js
index ddc324738..0cb9e06a5 100644
--- a/src/deferred.js
+++ b/src/deferred.js
@@ -102,7 +102,7 @@ jQuery.extend({
// Deferred helper
when: function( firstParam ) {
- var args = sliceDeferred.call( arguments, 0 ),
+ var args = sliceDeferred.call( arguments ),
i = 0,
length = args.length,
pValues = new Array( length ),
@@ -114,7 +114,7 @@ jQuery.extend({
promise = deferred.promise();
function resolveFunc( i ) {
return function( value ) {
- args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
+ args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments ) : value;
if ( !( --count ) ) {
deferred.resolveWith( deferred, args );
}
@@ -122,7 +122,7 @@ jQuery.extend({
}
function progressFunc( i ) {
return function( value ) {
- pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
+ pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments ) : value;
deferred.notifyWith( promise, pValues );
};
}