MCPcopy Create free account
hub / github.com/JsAaron/jQuery / updateFunc

Function updateFunc

2.1.1/src/deferred.js:108–118  ·  view source on GitHub ↗
( i, contexts, values )

Source from the content-addressed store, hash-verified

106
107 // Update function for both resolve and progress values
108 updateFunc = function( i, contexts, values ) {
109 return function( value ) {
110 contexts[ i ] = this;
111 values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
112 if ( values === progressValues ) {
113 deferred.notifyWith( contexts, values );
114 } else if ( !( --remaining ) ) {
115 deferred.resolveWith( contexts, values );
116 }
117 };
118 },
119
120 progressValues, progressContexts, resolveContexts;
121

Callers 1

deferred.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected