querystring-stringify-debug.js revision 8ce0f95d343cc9a7374985d6bd7e085505701dc4
/**
* Provides Y.QueryString.stringify method for converting objects to Query Strings.
*
* @module querystring
* @submodule querystring-stringify
* @for QueryString
* @static
*/
/**
* Provides Y.QueryString.escape method to be able to override default encoding
* method. This is important in cases where non-standard delimiters are used, if
* the delimiters would not normally be handled properly by the builtin
* (en|de)codeURIComponent functions.
* Default: encodeURIComponent
* @module querystring
* @submodule querystring-stringify
* @for QueryString
* @static
**/
var stack = [];
/**
* <p>Converts an arbitrary value to a Query String representation.</p>
*
* <p>Objects with cyclical references will trigger an exception.</p>
*
* @method stringify
* @param obj {Variant} any arbitrary value to convert to query string
* @param sep {String} (optional) Character that should join param k=v pairs together. Default: "&"
* @param eq {String} (optional) Character that should join keys to their values. Default: "="
* @param name {String} (optional) Name of the current key, for handling children recursively.
* @static
*/
}
// Y.log("Number or string: "+obj);
}
var s = [];
}
}
// now we know it's an object.
// Y.log(
// typeof obj + (typeof obj === 'object' ? " ok" : "ONOES!")+
// Object.prototype.toString.call(obj)
// );
// Check for cyclical references in nested objects
throw new Error("QueryString.stringify. Cyclical reference");
}
var s = [];
}
return s;
};
// Y.log(type === 'String' ? 'test a string: "'+ obj+'" ' +
// Object.prototype.toString.call(obj) + " " + Y.Lang["is"+"String"](obj) : '');
return (
);
}
}, '@VERSION@' );