public/javascripts/yui/treeview/treeview.js
function (oArgs) {
        var node;
        if ('node' in oArgs && oArgs.node instanceof Widget.Node) {
            node = oArgs.node;
        } else if (oArgs instanceof Widget.Node) {
            node = oArgs;
        } else {
            return false;
        }
        node.toggleHighlight();
        return false;
    }
function (oArgs) {
        var node;
        if ('node' in oArgs && oArgs.node instanceof Widget.Node) {
            node = oArgs.node;
        } else if (oArgs instanceof Widget.Node) {
            node = oArgs;
        } else {
            return false;
        }
        node.toggleHighlight();
        return false;
    }
function ( oArgs ) { var node ; if ( 'node' in oArgs && oArgs . node instanceof Widget . Node ) { node = oArgs . node ; } else if ( oArgs instanceof Widget . Node ) { node = oArgs ; } else { return false ; } node . toggleHighlight ( ) ; return false ; }
Event listener to toggle node highlight.
Can be assigned as listener to clickEvent, dblClickEvent and enterKeyPressed.
It returns false to prevent the default action.
@method onEventToggleHighlight
@param oArgs {any} it takes the arguments of any of the events mentioned above
@return {false} Always cancels the default action for the event
Event listener to toggle node highlight . Can be assigned as listener to clickEvent dblClickEvent and enterKeyPressed . It returns false to prevent the default action .