src/hft/scripts/misc/misc.js
function(str, opt_obj) {
    var dst = opt_obj || {};
    try {
      var q = str.indexOf("?");
      var e = str.indexOf("#");
      if (e < 0) {
        e = str.length;
      }
      var query = str.substring(q + 1, e);
      searchStringToObject(query, dst);
    } catch (e) {
      console.error(e);
    }
    return dst;
  }
function(str, opt_obj) {
    var dst = opt_obj || {};
    try {
      var q = str.indexOf("?");
      var e = str.indexOf("#");
      if (e < 0) {
        e = str.length;
      }
      var query = str.substring(q + 1, e);
      searchStringToObject(query, dst);
    } catch (e) {
      console.error(e);
    }
    return dst;
  }
function ( str , opt_obj ) { var dst = opt_obj || { } ; try { var q = str . indexOf ( "?" ) ; var e = str . indexOf ( "#" ) ; if ( e < 0 ) { e = str . length ; } var query = str . substring ( q + 1 , e ) ; searchStringToObject ( query , dst ) ; } catch ( e ) { console . error ( e ) ; } return dst ; }
Reads the query values from a URL like string.
@param {String} url URL like string eg. http://foo?key=value
@param {Object} [opt_obj] Object to attach key values to
@return {Object} Object with key values from URL
@memberOf module:Misc
Reads the query values from a URL like string .