Skip to content

Commit

Permalink
Merge branch 'master' into prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
derek committed Oct 12, 2012
2 parents 55699a4 + 626c957 commit 8887b1a
Show file tree
Hide file tree
Showing 184 changed files with 5,816 additions and 2,767 deletions.
908 changes: 457 additions & 451 deletions build/dial/dial-coverage.js

Large diffs are not rendered by default.

405 changes: 206 additions & 199 deletions build/dial/dial-debug.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/dial/dial-min.js

Large diffs are not rendered by default.

405 changes: 206 additions & 199 deletions build/dial/dial.js

Large diffs are not rendered by default.

139 changes: 70 additions & 69 deletions build/io-base/io-base-coverage.js

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions build/io-base/io-base-debug.js
Expand Up @@ -115,9 +115,9 @@ IO.prototype = {
use; use;


if (alt === 'native') { if (alt === 'native') {
// Non-IE can use XHR level 2 and not rely on an // Non-IE and IE >= 10 can use XHR level 2 and not rely on an
// external transport. // external transport.
alt = Y.UA.ie ? 'xdr' : null; alt = Y.UA.ie && !SUPPORTS_CORS ? 'xdr' : null;


// Prevent "pre-flight" OPTIONS request by removing the // Prevent "pre-flight" OPTIONS request by removing the
// `X-Requested-With` HTTP header from CORS requests. This header // `X-Requested-With` HTTP header from CORS requests. This header
Expand Down Expand Up @@ -707,10 +707,8 @@ IO.prototype = {


// Will work only in browsers that implement the // Will work only in browsers that implement the
// Cross-Origin Resource Sharing draft. // Cross-Origin Resource Sharing draft.
if (config.xdr && config.xdr.credentials) { if (config.xdr && config.xdr.credentials && SUPPORTS_CORS) {
if (!Y.UA.ie) { transaction.c.withCredentials = true;
transaction.c.withCredentials = true;
}
} }


// Using "null" with HTTP POST will result in a request // Using "null" with HTTP POST will result in a request
Expand Down Expand Up @@ -908,7 +906,11 @@ Y.IO = IO;
Y.io._map = {}; Y.io._map = {};
var XHR = win && win.XMLHttpRequest, var XHR = win && win.XMLHttpRequest,
XDR = win && win.XDomainRequest, XDR = win && win.XDomainRequest,
AX = win && win.ActiveXObject; AX = win && win.ActiveXObject,

// Checks for the presence of the `withCredentials` in an XHR instance
// object, which will be present if the environment supports CORS.
SUPPORTS_CORS = XHR && 'withCredentials' in (new XMLHttpRequest());




Y.mix(Y.IO, { Y.mix(Y.IO, {
Expand Down
2 changes: 1 addition & 1 deletion build/io-base/io-base-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions build/io-base/io-base.js
Expand Up @@ -115,9 +115,9 @@ IO.prototype = {
use; use;


if (alt === 'native') { if (alt === 'native') {
// Non-IE can use XHR level 2 and not rely on an // Non-IE and IE >= 10 can use XHR level 2 and not rely on an
// external transport. // external transport.
alt = Y.UA.ie ? 'xdr' : null; alt = Y.UA.ie && !SUPPORTS_CORS ? 'xdr' : null;


// Prevent "pre-flight" OPTIONS request by removing the // Prevent "pre-flight" OPTIONS request by removing the
// `X-Requested-With` HTTP header from CORS requests. This header // `X-Requested-With` HTTP header from CORS requests. This header
Expand Down Expand Up @@ -706,10 +706,8 @@ IO.prototype = {


// Will work only in browsers that implement the // Will work only in browsers that implement the
// Cross-Origin Resource Sharing draft. // Cross-Origin Resource Sharing draft.
if (config.xdr && config.xdr.credentials) { if (config.xdr && config.xdr.credentials && SUPPORTS_CORS) {
if (!Y.UA.ie) { transaction.c.withCredentials = true;
transaction.c.withCredentials = true;
}
} }


// Using "null" with HTTP POST will result in a request // Using "null" with HTTP POST will result in a request
Expand Down Expand Up @@ -906,7 +904,11 @@ Y.IO = IO;
Y.io._map = {}; Y.io._map = {};
var XHR = win && win.XMLHttpRequest, var XHR = win && win.XMLHttpRequest,
XDR = win && win.XDomainRequest, XDR = win && win.XDomainRequest,
AX = win && win.ActiveXObject; AX = win && win.ActiveXObject,

// Checks for the presence of the `withCredentials` in an XHR instance
// object, which will be present if the environment supports CORS.
SUPPORTS_CORS = XHR && 'withCredentials' in (new XMLHttpRequest());




Y.mix(Y.IO, { Y.mix(Y.IO, {
Expand Down

0 comments on commit 8887b1a

Please sign in to comment.