jquery core: closes #2652. val() supports option elements, also simplified the code.
[jquery.git] / src / ajax.js
index 2dcf870..853bcbb 100644 (file)
@@ -470,6 +470,7 @@ jQuery.extend({
                        throw "parsererror";
                        
                // Allow a pre-filtering function to sanitize the response
+               // s != null is checked to keep backwards compatibility
                if( s && s.dataFilter )
                        data = s.dataFilter( data, type );