public/javascripts/yui/history/history-debug.js
function (module) {

            var i, len, idx, hash, states, tokens, moduleName;

            if (typeof module !== "string") {
                throw new Error("Missing or invalid argument");
            }

            // Use location.href instead of location.hash which is already
            // URL-decoded, which creates problems if the state value
            // contained special characters...
            idx = top.location.href.indexOf("#");
            if (idx >= 0) {
                hash = top.location.href.substr(idx + 1);
                states = hash.split("&");
                for (i = 0, len = states.length; i < len; i++) {
                    tokens = states[i].split("=");
                    if (tokens.length === 2) {
                        moduleName = tokens[0];
                        if (moduleName === module) {
                            return unescape(tokens[1]);
                        }
                    }
                }
            }

            return null;
        }
function (module) {

            var i, len, idx, hash, states, tokens, moduleName;

            if (typeof module !== "string") {
                throw new Error("Missing or invalid argument");
            }

            // Use location.href instead of location.hash which is already
            // URL-decoded, which creates problems if the state value
            // contained special characters...
            idx = top.location.href.indexOf("#");
            if (idx >= 0) {
                hash = top.location.href.substr(idx + 1);
                states = hash.split("&");
                for (i = 0, len = states.length; i < len; i++) {
                    tokens = states[i].split("=");
                    if (tokens.length === 2) {
                        moduleName = tokens[0];
                        if (moduleName === module) {
                            return unescape(tokens[1]);
                        }
                    }
                }
            }

            return null;
        }
function ( module ) { var i , len , idx , hash , states , tokens , moduleName ; if ( typeof module !== "string" ) { throw new Error ( "Missing or invalid argument" ) ; } // Use location.href instead of location.hash which is already // URL-decoded, which creates problems if the state value // contained special characters... idx = top . location . href . indexOf ( "#" ) ; if ( idx >= 0 ) { hash = top . location . href . substr ( idx + 1 ) ; states = hash . split ( "&" ) ; for ( i = 0 , len = states . length ; i < len ; i ++ ) { tokens = states [ i ] . split ( "=" ) ; if ( tokens . length === 2 ) { moduleName = tokens [ 0 ] ; if ( moduleName === module ) { return unescape ( tokens [ 1 ] ) ; } } } } return null ; }
Returns the state of a module according to the URL fragment
identifier. This method is useful to initialize your modules
if your application was bookmarked from a particular state.

@method getBookmarkedState
@param {string} module Non-empty string representing your module.
@return {string} The bookmarked state of the specified module.
@public
Returns the state of a module according to the URL fragment identifier . This method is useful to initialize your modules if your application was bookmarked from a particular state .