jQuery.param() improvement
// 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