Hi all,
I have a button that triggers a jsonp call, and ajaxStart and ajaxComplete events aren't being triggered properly. It looks like jQuery.active gets incremented properly the first time ajaxStart is triggered, but is never decremented afterwords, so other ajaxStart and ajaxComplete events aren't triggered on subsequent jsonp calls.
I put some console.log() calls into the jquery lib and it also looks like this temp function is never called:
window[ jsonp ] = function(tmp){
data = tmp;
success();
complete();
// Garbage collect
window[ jsonp ] = undefined;
try{ delete window[ jsonp ]; } catch(e){}
if ( head )
head.removeChild( script );
};
So right now I have a workaround in my callback to decrement jQuery.active and trigger ajaxComplete, which is pretty ugly, but I'm not really sure how to go about fixing this. Does this need to be fixed, or is this the proper behavior since its not really an ajax call, or am I misreading this and am completely off base?
Comments and suggestions requested,
-t