Bump 0.6.1
This commit is contained in:
parent
8a52c39b37
commit
5e7f079b43
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Typertext",
|
||||
"version": "0.6.0",
|
||||
"version": "0.6.1",
|
||||
"homepage": "https://github.com/terribleplan/Typertext",
|
||||
"authors": [
|
||||
"Kegan Myers <kegan@keganmyers.com>"
|
||||
|
|
4
build/typertext.d.ts
vendored
4
build/typertext.d.ts
vendored
|
@ -104,6 +104,10 @@ declare module Typertext.Http {
|
|||
private static splitString(input, separator, limit?);
|
||||
constructor(domain: string, protocol?: HttpProtocol, path?: string, queryString?: HttpQueryString, port?: number);
|
||||
public ToString(): string;
|
||||
public GetPort(): number;
|
||||
public GetDomain(): string;
|
||||
public GetProtocol(): HttpProtocol;
|
||||
public CrossOriginCheck(url: HttpUrl): boolean;
|
||||
}
|
||||
}
|
||||
declare module Typertext.Json {
|
||||
|
|
|
@ -399,7 +399,7 @@ var Typertext;
|
|||
var ieLte9 = (ieTestDiv.getElementsByTagName("i").length === 1);
|
||||
var origin = HttpUrl.FromUrl(window.location.href);
|
||||
|
||||
if (!origin.CrossOriginCheck(url) || !ieLte9) {
|
||||
if (!origin.CrossOriginCheck(origin) || !ieLte9) {
|
||||
return new Typertext.Transport.XHR(method, request, postData, callback);
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
2
build/typertext.min.js
vendored
2
build/typertext.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -29,7 +29,7 @@ module Typertext.Transport {
|
|||
var origin = HttpUrl.FromUrl(window.location.href);
|
||||
|
||||
//If this is a CORS request in a modern browser
|
||||
if (!origin.CrossOriginCheck(url) || !ieLte9) {
|
||||
if (!origin.CrossOriginCheck(origin) || !ieLte9) {
|
||||
//Just use a standard XHR request
|
||||
return new XHR(method, request, postData, callback);
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"type": "git",
|
||||
"url": "https://github.com/terribleplan/Typertext.git"
|
||||
},
|
||||
"version": "0.6.0",
|
||||
"version": "0.6.1",
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.2",
|
||||
"grunt-cli": "~0.1.13",
|
||||
|
|
Reference in a new issue