function handleReadyStateChange()
    {
        // if we don’t care about this state change, ignore it
        if (oXhr.readyState !== XMLHttpRequest.DONE)
        {
            return;
        }

        // if it failed, reject
        if (oXhr.status !== 200)
        {
            return fnReject(oXhr.statusText);
        }

        // if we’re expecting JSON
        if (options.bExpectJson)
        {
            return resolveAsJSON();
        }

        // otherwise…
        fnResolve(oXhr.responseText);
    }
/**
     * Handles readystatechange events on the XHR object.
     *
     * @return {void}
     */
Handles readystatechange events on the XHR object.
@return {void}
Handles readystatechange events on the XHR object . @return { void }
function handleReadyStateChange()
    {
        if (oXhr.readyState !== XMLHttpRequest.DONE)
        {
            return;
        }
        if (oXhr.status !== 200)
        {
            return fnReject(oXhr.statusText);
        }
        if (options.bExpectJson)
        {
            return resolveAsJSON();
        }
        fnResolve(oXhr.responseText);
    }
function handleReadyStateChange ( ) { if ( oXhr . readyState !== XMLHttpRequest . DONE ) { return ; } if ( oXhr . status !== 200 ) { return fnReject ( oXhr . statusText ) ; } if ( options . bExpectJson ) { return resolveAsJSON ( ) ; } fnResolve ( oXhr . responseText ) ; }
Handles readystatechange events on the XHR object.
Handles readystatechange events on the XHR object .
// if we don’t care about this state change, ignore it // if it failed, reject // if we’re expecting JSON // otherwise…