mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
jquery ajax: closes #3052. Additional check on httpData() to keep compatibility with older code (form plugin).
This commit is contained in:
parent
335b8816c2
commit
35b8157507
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user