AjaxQ
AjaxQ copied to clipboard
Remove a specific request from the queue...
Any chance of a feature to remove a single specific request from the queue?
While I like the idea, and can see the usefulness, I'd say it's pretty unlikely we get this in anytime soon. As it is now, the queue is just a basic array of functions. We don't have an identifier to remove a specific function from that array.
There's a possibility we can keep an add an index property to each function we queue up, then modify the object we return when you call $.ajaxq() to maybe have a val.abort(). That method would find the function by array index and slice it out.
IMO, that seems like a hacky solution, but it's the only one I can think of off the top of my head. I'm open to other ideas if you have any. I'd like to keep this issue open, in any case, because like I said, I think it's a useful possible feature, and has given me a few ideas of how we could clean this plugin up.