public/javascripts/yui/treeview/treeview-debug.js
function(el, node) {
        this.logger.log("animating expand");

        if (this._expandAnim && this._animCount < this.maxAnim) {
            // this.locked = true;
            var tree = this;
            var a = Widget.TVAnim.getAnim(this._expandAnim, el, 
                            function() { tree.expandComplete(node); });
            if (a) { 
                ++this._animCount;
                this.fireEvent("animStart", {
                        "node": node, 
                        "type": "expand"
                    });
                a.animate();
            }

            return true;
        }

        return false;
    }
function(el, node) {
        this.logger.log("animating expand");

        if (this._expandAnim && this._animCount < this.maxAnim) {
            // this.locked = true;
            var tree = this;
            var a = Widget.TVAnim.getAnim(this._expandAnim, el, 
                            function() { tree.expandComplete(node); });
            if (a) { 
                ++this._animCount;
                this.fireEvent("animStart", {
                        "node": node, 
                        "type": "expand"
                    });
                a.animate();
            }

            return true;
        }

        return false;
    }
function ( el , node ) { this . logger . log ( "animating expand" ) ; if ( this . _expandAnim && this . _animCount < this . maxAnim ) { // this.locked = true; var tree = this ; var a = Widget . TVAnim . getAnim ( this . _expandAnim , el , function ( ) { tree . expandComplete ( node ) ; } ) ; if ( a ) { ++ this . _animCount ; this . fireEvent ( "animStart" , { "node" : node , "type" : "expand" } ) ; a . animate ( ) ; } return true ; } return false ; }
Perform the expand animation if configured, or just show the
element if not configured or too many animations are in progress
@method animateExpand
@param el {HTMLElement} the element to animate
@param node {YAHOO.util.Node} the node that was expanded
@return {boolean} true if animation could be invoked, false otherwise
Perform the expand animation if configured or just show the element if not configured or too many animations are in progress