Add 0.7.1 build

This commit is contained in:
Kegan Myers 2014-04-17 23:17:33 -05:00
parent 26548258b3
commit b84f10b88f
5 changed files with 6 additions and 6 deletions

View file

@ -112,7 +112,7 @@ declare module Typertext.Http {
public GetPort(): number;
public GetDomain(): string;
public GetProtocol(): HttpProtocol;
public CrossOriginCheck(url: HttpUrl): boolean;
public SameOriginCheck(url: HttpUrl): boolean;
}
}
declare module Typertext.Json {

View file

@ -281,7 +281,7 @@ var Typertext;
return this.protocol;
};
HttpUrl.prototype.CrossOriginCheck = function (url) {
HttpUrl.prototype.SameOriginCheck = function (url) {
return (this.domain === url.GetDomain() && this.port === url.GetPort() && this.protocol === url.GetProtocol());
};
return HttpUrl;
@ -402,7 +402,7 @@ var Typertext;
var ieLte9 = (ieTestDiv.getElementsByTagName("i").length === 1);
var origin = HttpUrl.FromUrl(window.location.href);
if (!origin.CrossOriginCheck(origin) || !ieLte9) {
if (origin.SameOriginCheck(origin) || !ieLte9) {
return Typertext.Transport.XHR;
}

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