aboutsummaryrefslogtreecommitdiffstats
path: root/src/deferred.js
Commit message (Collapse)AuthorAgeFilesLines
* Support: clean up comments and Support notationDave Methvin2014-06-101-2/+2
| | | | Closes gh-1577
* No ticket: fix code style inconsistencies. Closes gh-1361Oleg2013-09-131-1/+1
|
* Always return jQuery in modules that can be included separatelyTimmy Willison2013-09-081-0/+2
|
* AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.Timmy Willison2013-08-151-2/+9
|
* Removed an unneeded variable. Closes gh-1321.terrycojones2013-08-081-3/+2
|
* Eliminate redundancy of Deferred.then().nanto_vi2013-01-081-16/+11
|
* Propagete context of returned deferred object in Deferred.then(). Fixes #13160nanto_vi2013-01-071-2/+4
|
* Deferred: .resolve(), .reject() and .notify() now set the callback context ↵jaubourg2012-12-071-3/+6
| | | | to the promise instance rather than the deferred instance ; .then() has also been amended. Fixes #11405.
* deferred.promise(obj) should work with non-objects. Fixes #12521. Much ↵jaubourg2012-09-131-1/+1
| | | | needed unit tests added!
* Interim take on cross-module variables, closes gh-817.Richard Gibson2012-06-151-5/+2
|
* Strips IIFEs from modules; Always require built jQuery for tests.Rick Waldron2012-06-041-5/+1
|
* Preserves context objects when multiple Deferreds are passed to $.when(). ↵jaubourg2012-05-121-12/+16
| | | | Context is an array containing the original contexts in order. When non-observable value is given, associated context is undefined. In case only a single non-observable value is given, context is the global object (thanks so much Function.prototype.apply!). Fixes #11749.
* Fix #11736. Remove deprecated Deferred.isResolved/isRejected.Dave Methvin2012-05-111-3/+0
|
* Gains 1 more byte min/gz and reminds that isResolved and isRejected are ↵jaubourg2012-04-281-2/+2
| | | | deprecated in the comments.
* code compressionRichard Gibson2012-04-261-8/+11
|
* Trims down deferred.js. The gist of it is from the magnificent @gibson042, I ↵jaubourg2012-04-251-89/+86
| | | | just added some minor touches.
* Remove moot second argument from `slice.call()`Sindre Sorhus2012-04-041-3/+3
| | | | The zeroes were added to fix http://bugs.jquery.com/ticket/4942 but those browsers are no longer supported.
* Makes Deferred implementation truly Promise/A compliant. Unit tests amended. ↵jaubourg2012-04-021-8/+10
| | | | Actually few changes required in jQuery's own source and we gained 8 bytes minified gzipped \o/.
* Have Deferred.always return the object onto which it is currently attached ↵jaubourg2011-11-091-1/+2
| | | | to enable true chainability. Fixes #10723. Unit tests added.
* Core styleguide cleanup. Fixes #10586Rick Waldron2011-10-261-2/+2
|
* Removes isPending and introduces state as a means to retrieve the ↵jaubourg2011-10-111-6/+12
| | | | Deferred/Promise state. Unit tests amended.
* isProgressing becomes isPending. Unit tests added.jaubourg2011-10-041-1/+1
|
* Trimmed down $.Callbacks and $.Deferred.jaubourg2011-09-211-25/+24
|
* $.Callbacks, $.Topic and notify/progress on $.Deferred.jaubourg2011-09-191-146/+86
|
* Fixes #9446. Context is properly propagated using pipe. If context was the ↵jaubourg2011-07-011-1/+1
| | | | original deferred, then context is updated to next deferred in the chain. Unit tests added.
* Revert "Add catch block to try/finally in deferred. Fixes #9033. Test case ↵timmywil2011-06-081-3/+2
| | | | | | needed." Line of exception was lost when debugging. This reverts commit 0a80be67f4fe968d99777564a02aeddbde1fbf35.
* Add catch block to try/finally in deferred. Fixes #9033. Test case needed.timmywil2011-06-071-2/+3
|
* Fixes #9104. Returning null or undefined in a pipe callback shouldn't end up ↵jaubourg2011-05-091-1/+1
| | | | throwing an exception. Silly, silly, me.
* Applies exception in Style Guidelines regarding objects and functions when ↵jaubourg2011-04-081-2/+2
| | | | they are the last argument of a function call.
* Renames chain as pipe.jaubourg2011-04-081-3/+2
|
* Adds always and chain methods to deferreds.jaubourg2011-04-071-2/+30
|
* Fixes #8692. Strange FF4 bug: values changed onto the arguments object ↵jaubourg2011-03-301-1/+4
| | | | sometimes end up as undefined values outside the $.when method. Cloning the object into a fresh array solves the issue.
* Moves Deferred-related code into a separate module. Context handling has ↵jaubourg2011-03-031-0/+169
been simplified in _Deferred.resolve and jQuery.when has been refactored for clarity (and minor optimization).