public/javascripts/yui/treeview/treeview.js
function(fnDataLoader, iconMode) { 
        if (fnDataLoader) {
            this.dataLoader = fnDataLoader;
            this._dynLoad = true;
        } else {
            this.dataLoader = null;
            this._dynLoad = false;
        }

        if (iconMode) {
            this.iconMode = iconMode;
        }
    }
function(fnDataLoader, iconMode) { 
        if (fnDataLoader) {
            this.dataLoader = fnDataLoader;
            this._dynLoad = true;
        } else {
            this.dataLoader = null;
            this._dynLoad = false;
        }

        if (iconMode) {
            this.iconMode = iconMode;
        }
    }
function ( fnDataLoader , iconMode ) { if ( fnDataLoader ) { this . dataLoader = fnDataLoader ; this . _dynLoad = true ; } else { this . dataLoader = null ; this . _dynLoad = false ; } if ( iconMode ) { this . iconMode = iconMode ; } }
Configures this node for dynamically obtaining the child data
when the node is first expanded.  Calling it without the callback
will turn off dynamic load for the node.
@method setDynamicLoad
@param fmDataLoader {function} the function that will be used to get the data.
@param iconMode {int} configures the icon that is displayed when a dynamic
load node is expanded the first time without children.  By default, the
"collapse" icon will be used.  If set to 1, the leaf node icon will be
displayed.
Configures this node for dynamically obtaining the child data when the node is first expanded . Calling it without the callback will turn off dynamic load for the node .