X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax.js;h=a40e223e76dd599790c08e18c086a11feb268922;hb=4fc86d5eb1d4eaa3efad77dc224271d254f491e4;hp=f3252ebc4bd624cd7cc91a49ea8035c5e1a78d66;hpb=39addc87a37b32be19f2c58ec8babe752c0243e1;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index f3252eb..a40e223 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -250,14 +250,14 @@ jQuery.extend({ delete window[ jsonp ]; } catch( jsonpError ) {} } + + data = tmp; + jQuery.handleSuccess( s, xhr, status, data ); + jQuery.handleComplete( s, xhr, status, data ); if ( head ) { head.removeChild( script ); } - - data = tmp; - jQuery.ajax.handleSuccess( s, xhr, status, data ); - jQuery.ajax.handleComplete( s, xhr, status, data ); }; }