Permalink
Browse files

Build io-base.

  • Loading branch information...
1 parent 361214a commit 37c64c604f3631c495c9c7a2181995eeb77891b9 TSha committed Apr 1, 2012
Showing with 17 additions and 3 deletions.
  1. +8 −1 build/io-base/io-base-debug.js
  2. +1 −1 build/io-base/io-base-min.js
  3. +8 −1 build/io-base/io-base.js
@@ -111,8 +111,15 @@ IO.prototype = {
},
alt = config.xdr ? config.xdr.use : null,
form = config.form && config.form.upload ? 'iframe' : null,
- use = alt || form;
+ use;
+ if (alt === 'native') {
+ // Non-IE can use XHR level 2 and not rely on an
+ // external transport.
+ alt = Y.UA.ie ? 'xdr' : null;
+ }
+
+ use = alt || form;
transaction = use ? Y.merge(Y.IO.customTransport(use), transaction) :
Y.merge(Y.IO.defaultTransport(), transaction);

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -111,8 +111,15 @@ IO.prototype = {
},
alt = config.xdr ? config.xdr.use : null,
form = config.form && config.form.upload ? 'iframe' : null,
- use = alt || form;
+ use;
+ if (alt === 'native') {
+ // Non-IE can use XHR level 2 and not rely on an
+ // external transport.
+ alt = Y.UA.ie ? 'xdr' : null;
+ }
+
+ use = alt || form;
transaction = use ? Y.merge(Y.IO.customTransport(use), transaction) :
Y.merge(Y.IO.defaultTransport(), transaction);

0 comments on commit 37c64c6

Please sign in to comment.