Commit c43e1e37 authored by John Resig's avatar John Resig

Improved the robustness of the response codes based upon what's in Dojo. (Ticket #14)

parent 8f52a2e0
...@@ -63,7 +63,8 @@ $.xml = function( type, url, data, ret ) { ...@@ -63,7 +63,8 @@ $.xml = function( type, url, data, ret ) {
$.xmlActive = 0 $.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 ) if ( onSuccess )
onSuccess( xml ); onSuccess( xml );
} else if ( onError ) { } else if ( onError ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment