code: function(obj) {
    var str = "";
  
    for (var i in obj) {
      if (obj.hasOwnProperty(i)) {
        if (str.length) str += "&";
        str += encodeURIComponent(i) + "=" + encodeURIComponent(obj[i]);
      }
    }
  
    return str;
  }
docs: Compiles a querystring
  Returns string representation of the object
  
  @param {Object}
  @api private