Browse Source

Update comments

master
Kegan Myers 8 years ago
parent
commit
07a3baf73d
  1. 2
      build/typertext.js.map
  2. 7
      lib/Typertext/Transport/XDR.ts

2
build/typertext.js.map
File diff suppressed because it is too large
View File

7
lib/Typertext/Transport/XDR.ts

@ -21,21 +21,22 @@ module Typertext.Transport {
return undefined;
};
//No handle timeouts,
//Now to handle timeouts,
xdr.ontimeout = () => {
callback(new HttpResponse(HttpResponseStatus.timeout, (i:string)=>"", -1, ""));
};
//all errors (because XDR sucks)
//all errors (because XDR sucks),
xdr.onerror = () => {
callback(new HttpResponse(HttpResponseStatus.unknownError, getHeader, -1, xdr.responseText));
};
//and success.
//successes,
xdr.onload = () => {
callback(new HttpResponse(HttpResponseStatus.success, getHeader, 200, xdr.responseText));
};
//and even more stupidity (because XDR REALLY sucks).
xdr.onprogress = () => null;
//Finally, open the request