public/javascripts/yui/cookie/cookie.js
function (text /*:String*/) /*:Object*/ {
        
        var hashParts /*:Array*/ = text.split("&"),
            hashPart /*:Array*/ = null,
            hash /*:Object*/ = {};
        
        if (text.length > 0){
            for (var i=0, len=hashParts.length; i < len; i++){
                hashPart = hashParts[i].split("=");
                hash[decodeURIComponent(hashPart[0])] = decodeURIComponent(hashPart[1]);
            }
        }
        
        return hash;
    }
function (text /*:String*/) /*:Object*/ {
        
        var hashParts /*:Array*/ = text.split("&"),
            hashPart /*:Array*/ = null,
            hash /*:Object*/ = {};
        
        if (text.length > 0){
            for (var i=0, len=hashParts.length; i < len; i++){
                hashPart = hashParts[i].split("=");
                hash[decodeURIComponent(hashPart[0])] = decodeURIComponent(hashPart[1]);
            }
        }
        
        return hash;
    }
function ( text /*:String*/ ) /*:Object*/ { var hashParts /*:Array*/ = text . split ( "&" ) , hashPart /*:Array*/ = null , hash /*:Object*/ = { } ; if ( text . length > 0 ) { for ( var i = 0 , len = hashParts . length ; i < len ; i ++ ) { hashPart = hashParts [ i ] . split ( "=" ) ; hash [ decodeURIComponent ( hashPart [ 0 ] ) ] = decodeURIComponent ( hashPart [ 1 ] ) ; } } return hash ; }
Parses a cookie hash string into an object.
@param {String} text The cookie hash string to parse. The string should already be URL-decoded.
@return {Object} An object containing entries for each cookie value.
@method _parseCookieHash
@private
@static
Parses a cookie hash string into an object .