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

Function updateFunc

2.0.3/Deferred.js:103–113  ·  view source on GitHub ↗
(i, contexts, values)

Source from the content-addressed store, hash-verified

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

Callers 1

Deferred.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected