MoonScript/jQuery-ajaxTransport-XDomainRequest — pull request #6 by jcruz2us (2012-11-13 08:34:01+00:00)
Title: Requests using Protocol-less URLs fail

I found a problem wth using Protocol-less URLs (without http: or https:). Requests that use protocol-less urls never are started.

URL's like "//api.example.com" will never pass httpRegEx or sameSchemeRegEx.

The fix is really simple. Just check against the url in the request options not in userOptions. jQuery takes care of adding the proper protocol to url when its missing.