X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax.js;h=f3252ebc4bd624cd7cc91a49ea8035c5e1a78d66;hb=39addc87a37b32be19f2c58ec8babe752c0243e1;hp=d06bbabd94aa8e41b9b6da8b9a406c2dc68f226a;hpb=8fb4d9af74d61e4bc55e615a21115c48bf5f65d9;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index d06bbab..f3252eb 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -239,10 +239,6 @@ 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 ); @@ -258,6 +254,10 @@ jQuery.extend({ if ( head ) { head.removeChild( script ); } + + data = tmp; + jQuery.ajax.handleSuccess( s, xhr, status, data ); + jQuery.ajax.handleComplete( s, xhr, status, data ); }; }