Bump 0.6.1

This commit is contained in:
Kegan Myers 2014-04-15 11:27:38 -05:00
parent 8a52c39b37
commit 5e7f079b43
8 changed files with 11 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "Typertext", "name": "Typertext",
"version": "0.6.0", "version": "0.6.1",
"homepage": "https://github.com/terribleplan/Typertext", "homepage": "https://github.com/terribleplan/Typertext",
"authors": [ "authors": [
"Kegan Myers <kegan@keganmyers.com>" "Kegan Myers <kegan@keganmyers.com>"

View File

@ -104,6 +104,10 @@ declare module Typertext.Http {
private static splitString(input, separator, limit?); private static splitString(input, separator, limit?);
constructor(domain: string, protocol?: HttpProtocol, path?: string, queryString?: HttpQueryString, port?: number); constructor(domain: string, protocol?: HttpProtocol, path?: string, queryString?: HttpQueryString, port?: number);
public ToString(): string; public ToString(): string;
public GetPort(): number;
public GetDomain(): string;
public GetProtocol(): HttpProtocol;
public CrossOriginCheck(url: HttpUrl): boolean;
} }
} }
declare module Typertext.Json { declare module Typertext.Json {

View File

@ -399,7 +399,7 @@ var Typertext;
var ieLte9 = (ieTestDiv.getElementsByTagName("i").length === 1); var ieLte9 = (ieTestDiv.getElementsByTagName("i").length === 1);
var origin = HttpUrl.FromUrl(window.location.href); 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); return new Typertext.Transport.XHR(method, request, postData, callback);
} }

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

View File

@ -29,7 +29,7 @@ module Typertext.Transport {
var origin = HttpUrl.FromUrl(window.location.href); var origin = HttpUrl.FromUrl(window.location.href);
//If this is a CORS request in a modern browser //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 //Just use a standard XHR request
return new XHR(method, request, postData, callback); return new XHR(method, request, postData, callback);
} }

View File

@ -5,7 +5,7 @@
"type": "git", "type": "git",
"url": "https://github.com/terribleplan/Typertext.git" "url": "https://github.com/terribleplan/Typertext.git"
}, },
"version": "0.6.0", "version": "0.6.1",
"devDependencies": { "devDependencies": {
"grunt": "~0.4.2", "grunt": "~0.4.2",
"grunt-cli": "~0.1.13", "grunt-cli": "~0.1.13",