aboutsummaryrefslogtreecommitdiffstats
path: root/src/deferred.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/deferred.js')
-rw-r--r--src/deferred.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/deferred.js b/src/deferred.js
index a8410c8be..f0b1f96e6 100644
--- a/src/deferred.js
+++ b/src/deferred.js
@@ -1,6 +1,3 @@
-var // Static reference to slice
- sliceDeferred = [].slice;
-
jQuery.extend({
Deferred: function( func ) {
@@ -93,7 +90,7 @@ jQuery.extend({
// Deferred helper
when: function( subordinate /* , ..., subordinateN */ ) {
var i = 0,
- resolveValues = sliceDeferred.call( arguments ),
+ resolveValues = core_slice.call( arguments ),
length = resolveValues.length,
// the count of uncompleted subordinates
@@ -106,7 +103,7 @@ jQuery.extend({
updateFunc = function( i, contexts, values ) {
return function( value ) {
contexts[ i ] = this;
- values[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments ) : value;
+ values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value;
if( values === progressValues ) {
deferred.notifyWith( contexts, values );
} else if ( !( --remaining ) ) {