Update build
This commit is contained in:
parent
7346b33944
commit
54e250cabe
|
@ -146,7 +146,7 @@ declare module Typertext.Transport {
|
||||||
}
|
}
|
||||||
declare module Typertext.Transport {
|
declare module Typertext.Transport {
|
||||||
class TransportChooser {
|
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 {
|
declare module Typertext.Transport {
|
||||||
|
|
|
@ -117,7 +117,7 @@ var Typertext;
|
||||||
if (typeof postData === "undefined") { postData = {}; }
|
if (typeof postData === "undefined") { postData = {}; }
|
||||||
if (typeof callback === "undefined") { callback = function (c) {
|
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;
|
return HttpRequest;
|
||||||
})();
|
})();
|
||||||
|
@ -369,7 +369,7 @@ var Typertext;
|
||||||
var TransportChooser = (function () {
|
var TransportChooser = (function () {
|
||||||
function TransportChooser() {
|
function TransportChooser() {
|
||||||
}
|
}
|
||||||
TransportChooser.GetTransport = function (method, request, postData, callback) {
|
TransportChooser.Transport = function (method, request, postData, callback) {
|
||||||
var ieLte9 = false;
|
var ieLte9 = false;
|
||||||
var isXdomain = false;
|
var isXdomain = false;
|
||||||
var isXprotocol = false;
|
var isXprotocol = false;
|
||||||
|
@ -429,6 +429,10 @@ var Typertext;
|
||||||
callback(new HttpResponse(0 /* success */, getHeader, 200, xdr.responseText));
|
callback(new HttpResponse(0 /* success */, getHeader, 200, xdr.responseText));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdr.onprogress = function () {
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
|
||||||
xdr.open(HttpMethod[method], request.ToString());
|
xdr.open(HttpMethod[method], request.ToString());
|
||||||
|
|
||||||
if (method == 0 /* GET */) {
|
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
Reference in New Issue