src/utils/url.js
function() {
      var pairs = _self.querystring().split('&');
      var params = {};

      for(var i=0; i<pairs.length; i++) {
        if(pairs[i] === '') continue;
        var nameValue = pairs[i].split('=');
        params[nameValue[0]] = (typeof nameValue[1] === 'undefined' || nameValue[1] === '') ? true : decodeURIComponent(nameValue[1]);
      }

      return params;
    }
function() {
      var pairs = _self.querystring().split('&');
      var params = {};

      for(var i=0; i<pairs.length; i++) {
        if(pairs[i] === '') continue;
        var nameValue = pairs[i].split('=');
        params[nameValue[0]] = (typeof nameValue[1] === 'undefined' || nameValue[1] === '') ? true : decodeURIComponent(nameValue[1]);
      }

      return params;
    }
function ( ) { var pairs = _self . querystring ( ) . split ( '&' ) ; var params = { } ; for ( var i = 0 ; i < pairs . length ; i ++ ) { if ( pairs [ i ] === '' ) continue ; var nameValue = pairs [ i ] . split ( '=' ) ; params [ nameValue [ 0 ] ] = ( typeof nameValue [ 1 ] === 'undefined' || nameValue [ 1 ] === '' ) ? true : decodeURIComponent ( nameValue [ 1 ] ) ; } return params ; }
Get the querystring of a URL parameters as a hash

@return {String}     A querystring from URL
Get the querystring of a URL parameters as a hash