new → closed
with its own complete handler, which overrides the one that would have come in through
. However, if you were to have used the success handler then
would work and the others would fail.
Instead of using
to set handlers, you should be using the ajax global events such as ajaxComplete. I've edited the docs to make this a bit clearer.