// Change status = xhr.status; responseHeaders = xhr.getAllResponseHeaders(); responses = {}; xml = xhr.responseXML; // Construct response list if ( xml && xml.documentElement /* #4958 */ ) { responses.xml = xml; } responses.text = xhr.responseText; // By status = xhr.status; responseHeaders = xhr.getAllResponseHeaders(); responses = {}; if (s.responseHandler && s.responseHandler[ s.dataType ]) { s.responseHandler[ s.dataType ](responses, s, xhr); } else { xml = xhr.responseXML; // Construct response list if ( xml && xml.documentElement /* #4958 */ ) { responses.xml = xml; } responses.text = xhr.responseText; }