url.js
// NOTE: Doesn't do the encoding/decoding dance
Doesn't do the encoding/decoding dance
Doesn ' t do the encoding / decoding dance
function serialize(pairs) {
        var output = '', first = true;
        pairs.forEach(function(pair) {
          var name = encodeURIComponent(pair.name);
          var value = encodeURIComponent(pair.value);
          if (!first) output += '&';
          output += name + '=' + value;
          first = false;
        });
        return output;
      }
function serialize ( pairs ) { var output = '' , first = true ; pairs . forEach ( function ( pair ) { var name = encodeURIComponent ( pair . name ) ; var value = encodeURIComponent ( pair . value ) ; if ( ! first ) output += '&' ; output += name + '=' + value ; first = false ; } ) ; return output ; }
NOTE: Doesn't do the encoding/decoding dance
NOTE : Doesn ' t do the encoding / decoding dance