jquery ajax: closes #3052. Additional check on httpData() to keep compatibility with...
authorAriel Flesler <aflesler@gmail.com>
Tue, 17 Jun 2008 21:03:20 +0000 (21:03 +0000)
committerAriel Flesler <aflesler@gmail.com>
Tue, 17 Jun 2008 21:03:20 +0000 (21:03 +0000)
src/ajax.js

index 42d0b28..2dcf870 100644 (file)
@@ -470,7 +470,7 @@ jQuery.extend({
                        throw "parsererror";
                        
                // Allow a pre-filtering function to sanitize the response
-               if( s.dataFilter )
+               if( s && s.dataFilter )
                        data = s.dataFilter( data, type );
 
                // If the type is "script", eval it in global context