public/javascripts/yui/cookie/cookie.js
function (name /*:String*/) /*:Object*/ {
    
        var isString = YAHOO.lang.isString;
        
        //check cookie name
        if (!isString(name) || name === ""){
            throw new TypeError("Cookie.getSubs(): Cookie name must be a non-empty string.");
        }
        
        var cookies = this._parseCookieString(document.cookie, false);
        if (isString(cookies[name])){
            return this._parseCookieHash(cookies[name]);
        }
        return null;
    }
function (name /*:String*/) /*:Object*/ {
    
        var isString = YAHOO.lang.isString;
        
        //check cookie name
        if (!isString(name) || name === ""){
            throw new TypeError("Cookie.getSubs(): Cookie name must be a non-empty string.");
        }
        
        var cookies = this._parseCookieString(document.cookie, false);
        if (isString(cookies[name])){
            return this._parseCookieHash(cookies[name]);
        }
        return null;
    }
function ( name /*:String*/ ) /*:Object*/ { var isString = YAHOO . lang . isString ; //check cookie name if ( ! isString ( name ) || name === "" ) { throw new TypeError ( "Cookie.getSubs(): Cookie name must be a non-empty string." ) ; } var cookies = this . _parseCookieString ( document . cookie , false ) ; if ( isString ( cookies [ name ] ) ) { return this . _parseCookieHash ( cookies [ name ] ) ; } return null ; }
Returns an object containing name-value pairs stored in the cookie with the given name.
@param {String} name The name of the cookie to retrieve.
@return {Object} An object of name-value pairs if the cookie with the given name
exists, null if it does not.
@method getSubs
@static
Returns an object containing name - value pairs stored in the cookie with the given name .