From: jeresig Date: Fri, 15 Oct 2010 00:55:40 +0000 (-0400) Subject: Reverting commit 39addc87a37b32be19f2c58ec8babe752c0243e1 after a report of problems... X-Git-Url: http://git.asbjorn.it/?p=jquery.git;a=commitdiff_plain;h=80a4178af9b12e6617bfcec818c538dfe08d3791 Reverting commit 39addc87a37b32be19f2c58ec8babe752c0243e1 after a report of problems. Fixes #7196. --- 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 ); }; }