Trackback?
Query.param() is never called with a string argument.
Which is logicall because its job is to make a string query to be
added to the url.
So:
$.param({ 'A' : 'B', 'C': 'D' })
/*
returns : 'A=B&C=D'
*/
"" == $.param("")
/*
is: true
*/
"" == $.param("A B")
/*
is: true
*/
-- DBJ
On Apr 15, 3:39 pm, DBJDBJ <[email protected]> wrote:
> // Serialize an array of form elements or a set of
> // key/values into a query string
> param: function( a ) {
> // code here
> }
>
> Does not check if argument is an empty atring.
> To improve the robustness one could write :
>
> param: function ( a ) {
>
> if ( a === "" ) return "" ;
> // code here
> }
>
> My assumption is this wont introduce some new issues for the callers
> of this internal method.
>
> -- DBJ
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" 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/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---