Parse doesn't time out

I’m using the parse Javascript SDK and it’s working quite well, but there is one problem:

The Parse Javascript SDK doesn’t seem to implement a timeout on requests to the server. (I think it assumes that the execution environment, usually a web-browser, provides a timeout.) Fuse doesn’t provide a timeout either, and the result is that the app gets stuck forever.

I’m unable to come up with a viable workaround or recovery from this hang, and it happens whenever internet connection is patchy or non-existant

I will add timeout support to XMLHttpRequest, that should to it.

This is solved?

I’m trying to implement the TimeOut but is not working… I’m tryng like this:

http.timeout = 1000; 
http.ontimeout = function () { 
    debug_log("timeout");
}

It never worked for me either. I had to make my own timeout promise helper.