appMobi/jQ.Mobi — Issue #105: $.ajax xhr.status bug
Author: polovi
Created: 2012-03-01 00:12:31+00:00
State: open

When $.ajax url has protocol and address not responding xhr.status is "0" and $.ajax return success instead of returning error
in zepto is xhr.status == 0 only when protocol is "file:"

protocol = /^([\w-]+:)\/\//.test(settings.url) ? RegExp.$1 : window.location.protocol

if ((xhr.status >= 200 && xhr.status < 300) || (xhr.status == 0 && protocol == 'file:'))