From 35b8157507afaa28aa6e2e8efa5bb03315b33e1c Mon Sep 17 00:00:00 2001 From: Ariel Flesler Date: Tue, 17 Jun 2008 21:03:20 +0000 Subject: [PATCH] jquery ajax: closes #3052. Additional check on httpData() to keep compatibility with older code (form plugin). --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax.js b/src/ajax.js index 42d0b280c..2dcf87060 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