Difference between revisions of "JQuery promise method"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (Created page with "In jQuery, the '''.promise() method''' returns a dynamically generated Promise that is resolved once all actions of a certain type bound to the collection, queued or not,...") |
Karl Jones (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | In [[jQuery]], the '''.promise() method''' returns a dynamically generated Promise that is resolved once all actions of a certain type bound to the collection, queued or not, have ended. | + | {{lowercase}}In [[jQuery]], the '''.promise() method''' returns a dynamically generated Promise that is resolved once all actions of a certain type bound to the collection, queued or not, have ended. |
== Description == | == Description == |
Revision as of 13:49, 16 September 2016
In jQuery, the .promise() method returns a dynamically generated Promise that is resolved once all actions of a certain type bound to the collection, queued or not, have ended.
Description
By default, type is "fx", which means the returned Promise is resolved when all animations of the selected elements have completed.
Resolve context and sole argument is the collection onto which .promise() has been called.
If target is provided, .promise() will attach the methods onto it and then return this object rather than create a new one. This can be useful to attach the Promise behavior to an object that already exists.
See also
External links
- .promise() @ api.jquery.com