Permalink
Browse files

Merge branch 'jafl-io-custom-transport' into dev-master

  • Loading branch information...
2 parents 3040fca + 9afae33 commit 0554cd2f666e45532f2540dabed1f8f345d827a9 @ericf ericf committed Jan 11, 2013

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -645,10 +645,15 @@ IO.prototype = {
sync = config.sync;
data = config.data;
- // Serialize an map object into a key-value string using
+ // Serialize a map object into a key-value string using
// querystring-stringify-simple.
if ((Y.Lang.isObject(data) && !data.nodeType) && !transaction.upload) {
- data = Y.QueryString.stringify(data);
+ if (Y.QueryString && Y.QueryString.stringify) {
+ Y.log('Stringifying config.data for request', 'info', 'io');
+ config.data = data = Y.QueryString.stringify(data);
+ } else {
+ Y.log('Failed to stringify config.data object, likely because `querystring-stringify-simple` is missing.', 'warn', 'io');
+ }
}
if (config.form) {

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

Oops, something went wrong.
View
@@ -645,10 +645,13 @@ IO.prototype = {
sync = config.sync;
data = config.data;
- // Serialize an map object into a key-value string using
+ // Serialize a map object into a key-value string using
// querystring-stringify-simple.
if ((Y.Lang.isObject(data) && !data.nodeType) && !transaction.upload) {
- data = Y.QueryString.stringify(data);
+ if (Y.QueryString && Y.QueryString.stringify) {
+ config.data = data = Y.QueryString.stringify(data);
+ } else {
+ }
}
if (config.form) {
Oops, something went wrong.

0 comments on commit 0554cd2

Please sign in to comment.