From: Ariel Flesler Date: Tue, 17 Jun 2008 21:03:20 +0000 (+0000) Subject: jquery ajax: closes #3052. Additional check on httpData() to keep compatibility with... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=35b8157507afaa28aa6e2e8efa5bb03315b33e1c;hp=335b8816c2f1e66de1fa245278794f8c7fdb1e01;p=jquery.git jquery ajax: closes #3052. Additional check on httpData() to keep compatibility with older code (form plugin). --- diff --git a/src/ajax.js b/src/ajax.js index 42d0b28..2dcf870 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -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