Domanda

If a var is set to a jQuery $.ajax() call like so

var ajaxVar = $.ajax(...

will ajaxVar's ajax request automatically be $.abort()ed if ajaxVar is reinitialized?

I have examined the docs, and I can't find an answer.

È stato utile?

Soluzione

No, it won't be aborted. There isn't even any requirement to assign the result of $.ajax() to a variable, many applications don't bother.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top