Michael Peters wrote:
> In the process, blank values are being
> lost. Here's an example:
>
> var query = 'foo=bar&foo=&foo=&foo=baz';
> alert('BEFORE: ' + query + "\nAFTER :" +
> $H(query.toQueryParams()).toQueryString());
The reason this breaks is because toQueryParams() translates
'foo=bar&foo=&foo=baz' into { foo: ['bar', undefined, 'baz] }. And
toQueryString() translates undefined into non-existant instead of blank.
I also looked at what's in svn and it's having the same problem.
--
Michael Peters
Developer
Plus Three, LP
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---