jquery ajax: closes #3052. Additional check on httpData() to keep compatibility with older code (form plugin).

This commit is contained in:
Ariel Flesler 2008-06-17 21:03:20 +00:00
parent 335b8816c2
commit 35b8157507

View File

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