aboutsummaryrefslogtreecommitdiffstats
path: root/src/deferred.js
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2012-06-15 21:01:44 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-06-15 21:01:44 -0400
commita101e81bde71e94170f1fa899432cbe8150910f9 (patch)
tree9d3a75a1f5f14267e8ba6e1058d2c4e81c45c8f0 /src/deferred.js
parent46d680458b74fcf956f6161a2b73b6b00fc2541d (diff)
downloadjquery-a101e81bde71e94170f1fa899432cbe8150910f9.tar.gz
jquery-a101e81bde71e94170f1fa899432cbe8150910f9.zip
Interim take on cross-module variables, closes gh-817.
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 ) ) {