X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax.js;h=1602ed25a5ef6a20444e23a62e513f319da55405;hb=40aa95c32097b0bc669ea5b1e127717b54b0335a;hp=5c8ec62aba081695936fbf9eef56fe3031f06fc8;hpb=d490bcfa7ca78a330e55b9267cc492a49c0f70bb;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 5c8ec62..1602ed2 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -239,6 +239,10 @@ jQuery.extend({ var customJsonp = window[ jsonp ]; window[ jsonp ] = function( tmp ) { + data = tmp; + jQuery.handleSuccess( s, xhr, status, data ); + jQuery.handleComplete( s, xhr, status, data ); + if ( jQuery.isFunction( customJsonp ) ) { customJsonp( tmp ); @@ -254,10 +258,6 @@ jQuery.extend({ if ( head ) { head.removeChild( script ); } - - data = tmp; - jQuery.handleSuccess( s, xhr, status, data ); - jQuery.handleComplete( s, xhr, status, data ); }; }