Ticket #893 (closed enhancement: fixed)
Hash.toQueryString handles objects in hashes wrong
| Reported by: | zedix | Owned by: | digitarald |
|---|---|---|---|
| Type: | enhancement | Priority: | minor |
| Milestone: | Mootools version 1.3 | Component: | Core |
| Keywords: | toquerystring | Cc: |
Description
In addition to the ticket #828 (fixed in r1479), I would suggest to implement the following spec to enhance Hash.toQueryString:
var myHash3 = new Hash({type:'cart', fruits: {apple:'red', lemon:'yellow'}});
value_of(myHash3.toQueryString()).should_be('type=cart&fruits[apple]=red&fruits[lemon]=yellow');
Fell free to close this ticket if you think this should be handle trough an Hash.implement extension only.
Change History
Note: See
TracTickets for help on using
tickets.