Update build

This commit is contained in:
Kegan Myers 2014-04-14 12:01:17 -05:00
parent 7346b33944
commit 54e250cabe
5 changed files with 10 additions and 6 deletions

View File

@ -146,7 +146,7 @@ declare module Typertext.Transport {
}
declare module Typertext.Transport {
class TransportChooser {
static GetTransport(method: Http.HttpMethod, request: Http.HttpUrl, postData: Http.HttpPostData, callback: Http.HttpResponseHandler): GenericTransport;
static Transport(method: Http.HttpMethod, request: Http.HttpUrl, postData: Http.HttpPostData, callback: Http.HttpResponseHandler): GenericTransport;
}
}
declare module Typertext.Transport {

View File

@ -117,7 +117,7 @@ var Typertext;
if (typeof postData === "undefined") { postData = {}; }
if (typeof callback === "undefined") { callback = function (c) {
}; }
Typertext.Transport.TransportChooser.GetTransport(method, request, postData, callback);
Typertext.Transport.TransportChooser.Transport(method, request, postData, callback);
};
return HttpRequest;
})();
@ -369,7 +369,7 @@ var Typertext;
var TransportChooser = (function () {
function TransportChooser() {
}
TransportChooser.GetTransport = function (method, request, postData, callback) {
TransportChooser.Transport = function (method, request, postData, callback) {
var ieLte9 = false;
var isXdomain = false;
var isXprotocol = false;
@ -429,6 +429,10 @@ var Typertext;
callback(new HttpResponse(0 /* success */, getHeader, 200, xdr.responseText));
};
xdr.onprogress = function () {
return null;
};
xdr.open(HttpMethod[method], request.ToString());
if (method == 0 /* GET */) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long