Changeset 3213 for lang/javascript/jsdeferred
- Timestamp:
- 12/17/07 19:19:39 (13 months ago)
- Files:
-
- 1 modified
-
lang/javascript/jsdeferred/trunk/jsdeferred.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/jsdeferred/trunk/jsdeferred.js
r3042 r3213 229 229 args = Array.prototype.slice.call(arguments); 230 230 f = args.shift(); 231 return next(function () {231 return Deferred.next(function () { 232 232 return f.apply(this, args); 233 233 }); … … 261 261 }; 262 262 var ret, step = o.step; 263 return next(function () {263 return Deferred.next(function () { 264 264 function _loop (i) { 265 265 if (i <= o.end) { … … 273 273 return ret.next(function (r) { 274 274 ret = r; 275 return call(_loop, i + step);275 return Deferred.call(_loop, i + step); 276 276 }); 277 277 } else { 278 return call(_loop, i + step);278 return Deferred.call(_loop, i + step); 279 279 } 280 280 } else { … … 282 282 } 283 283 } 284 return call(_loop, o.begin);284 return Deferred.call(_loop, o.begin); 285 285 }); 286 286 };
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)