]> source.dussan.org Git - jquery.git/commitdiff
Reverting commit 39addc87a37b32be19f2c58ec8babe752c0243e1 after a report of problems...
authorjeresig <jeresig@gmail.com>
Fri, 15 Oct 2010 00:55:40 +0000 (20:55 -0400)
committerjeresig <jeresig@gmail.com>
Fri, 15 Oct 2010 00:55:40 +0000 (20:55 -0400)
src/ajax.js

index 5c8ec62aba081695936fbf9eef56fe3031f06fc8..1602ed25a5ef6a20444e23a62e513f319da55405 100644 (file)
@@ -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 );
                        };
                }