Skip to content
Permalink
Browse files
Improved the robustness of the response codes based upon what's in Do…
…jo. (Ticket #14)
  • Loading branch information
jeresig committed Jun 18, 2006
1 parent 8f52a2e commit c43e1e3
Showing 1 changed file with 2 additions and 1 deletion.
@@ -63,7 +63,8 @@ $.xml = function( type, url, data, ret ) {
$.xmlActive = 0
}

if ( xml.status && xml.status >= 200 && xml.status < 300 ) {
if ( ( xml.status && ( xml.status >= 200 && xml.status < 300 ) || xml.status == 304 ) ||
!xml.status && location.protocol == 'file:' ) {
if ( onSuccess )
onSuccess( xml );
} else if ( onError ) {

0 comments on commit c43e1e3

Please sign in to comment.