How can I cancel a promise without removing the element from the DOM?
I ran this code:
$("#box")
.delay(2000)
.show("slow")
.delay(2000)
.promise()
.then(function(){log("Done");});
After this, is there a way to cancel the promise? Both clearQueue()
and stop(true)
didn't work, because it's not an animation that I'm trying to cancel. I saw that remove()
should do it ... but I only want to stop the promise, not remove the entire element.