开发者

"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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜