"unresolving" a deferred object
In short, is there a way to "unresolve" a deferred object?
For example: We have a list of data that needs to be updated periodically, or when an event is triggered. It would be great to take a deferred object created with .ajax() and pass it's promise around to gather callbacks. Then "fire" that ajax request whenever we want and hav开发者_StackOverflow社区e all the callbacks react. Is that possible?
Cheers
As of jQuery 1.7, there is progress()
that can be used for multi-fire situations.
精彩评论