src/aria/utils/HashManager.js
function (hashString) {
            var pairs = hashString, hashObject = {}, currentPair, currentPairString;
            pairs = (pairs) ? pairs.split(this._separatorRegExp) : [];
            for (var i = 0, size = pairs.length; size > i; i++) {
                currentPairString = pairs[i];
                currentPair = decodeURIComponent(currentPairString).split("=");
                if (currentPair.length == 2) {
                    hashObject[currentPair[0]] = currentPair[1];
                } else {
                    if (currentPairString.indexOf("=") == currentPairString.length) {
                        hashObject[currentPair[0]] = "";
                    } else {
                        hashObject["param" + i] = currentPair[0];
                    }
                }
            }
            return hashObject;
        }
function (hashString) {
            var pairs = hashString, hashObject = {}, currentPair, currentPairString;
            pairs = (pairs) ? pairs.split(this._separatorRegExp) : [];
            for (var i = 0, size = pairs.length; size > i; i++) {
                currentPairString = pairs[i];
                currentPair = decodeURIComponent(currentPairString).split("=");
                if (currentPair.length == 2) {
                    hashObject[currentPair[0]] = currentPair[1];
                } else {
                    if (currentPairString.indexOf("=") == currentPairString.length) {
                        hashObject[currentPair[0]] = "";
                    } else {
                        hashObject["param" + i] = currentPair[0];
                    }
                }
            }
            return hashObject;
        }
function ( hashString ) { var pairs = hashString , hashObject = { } , currentPair , currentPairString ; pairs = ( pairs ) ? pairs . split ( this . _separatorRegExp ) : [ ] ; for ( var i = 0 , size = pairs . length ; size > i ; i ++ ) { currentPairString = pairs [ i ] ; currentPair = decodeURIComponent ( currentPairString ) . split ( "=" ) ; if ( currentPair . length == 2 ) { hashObject [ currentPair [ 0 ] ] = currentPair [ 1 ] ; } else { if ( currentPairString . indexOf ( "=" ) == currentPairString . length ) { hashObject [ currentPair [ 0 ] ] = "" ; } else { hashObject [ "param" + i ] = currentPair [ 0 ] ; } } } return hashObject ; }
Extract the hash object from the hash string
@protected
@param {String} hashString
@return {Object} hashObject
Extract the hash object from the hash string