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

        var i, len, moduleName, moduleObj, modules, states, tokens, currentState;

        if (!fqstate) {
            // Notifies all modules
            for (moduleName in _modules) {
                if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
                    moduleObj = _modules[moduleName];
                    moduleObj.currentState = moduleObj.initialState;
                    moduleObj.onStateChange(unescape(moduleObj.currentState));
                }
            }
            return;
        }

        modules = [];
        states = fqstate.split("&");
        for (i = 0, len = states.length; i < len; i++) {
            tokens = states[i].split("=");
            if (tokens.length === 2) {
                moduleName = tokens[0];
                currentState = tokens[1];
                modules[moduleName] = currentState;
            }
        }

        for (moduleName in _modules) {
            if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
                moduleObj = _modules[moduleName];
                currentState = modules[moduleName];
                if (!currentState || moduleObj.currentState !== currentState) {
                    moduleObj.currentState = currentState || moduleObj.initialState;
                    moduleObj.onStateChange(unescape(moduleObj.currentState));
                }
            }
        }
    }
function _handleFQStateChange(fqstate) {

        var i, len, moduleName, moduleObj, modules, states, tokens, currentState;

        if (!fqstate) {
            // Notifies all modules
            for (moduleName in _modules) {
                if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
                    moduleObj = _modules[moduleName];
                    moduleObj.currentState = moduleObj.initialState;
                    moduleObj.onStateChange(unescape(moduleObj.currentState));
                }
            }
            return;
        }

        modules = [];
        states = fqstate.split("&");
        for (i = 0, len = states.length; i < len; i++) {
            tokens = states[i].split("=");
            if (tokens.length === 2) {
                moduleName = tokens[0];
                currentState = tokens[1];
                modules[moduleName] = currentState;
            }
        }

        for (moduleName in _modules) {
            if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
                moduleObj = _modules[moduleName];
                currentState = modules[moduleName];
                if (!currentState || moduleObj.currentState !== currentState) {
                    moduleObj.currentState = currentState || moduleObj.initialState;
                    moduleObj.onStateChange(unescape(moduleObj.currentState));
                }
            }
        }
    }
function _handleFQStateChange ( fqstate ) { var i , len , moduleName , moduleObj , modules , states , tokens , currentState ; if ( ! fqstate ) { // Notifies all modules for ( moduleName in _modules ) { if ( YAHOO . lang . hasOwnProperty ( _modules , moduleName ) ) { moduleObj = _modules [ moduleName ] ; moduleObj . currentState = moduleObj . initialState ; moduleObj . onStateChange ( unescape ( moduleObj . currentState ) ) ; } } return ; } modules = [ ] ; states = fqstate . split ( "&" ) ; for ( i = 0 , len = states . length ; i < len ; i ++ ) { tokens = states [ i ] . split ( "=" ) ; if ( tokens . length === 2 ) { moduleName = tokens [ 0 ] ; currentState = tokens [ 1 ] ; modules [ moduleName ] = currentState ; } } for ( moduleName in _modules ) { if ( YAHOO . lang . hasOwnProperty ( _modules , moduleName ) ) { moduleObj = _modules [ moduleName ] ; currentState = modules [ moduleName ] ; if ( ! currentState || moduleObj . currentState !== currentState ) { moduleObj . currentState = currentState || moduleObj . initialState ; moduleObj . onStateChange ( unescape ( moduleObj . currentState ) ) ; } } } }
Sets the new currentState attribute of all modules depending on the new
fully qualified state. Also notifies the modules which current state has
changed.

@method _handleFQStateChange
@param {string} fqstate Fully qualified state
@private
Sets the new currentState attribute of all modules depending on the new fully qualified state . Also notifies the modules which current state has changed .