rem: treeContent.treeBoxObject.selection.tree = treeContent.treeBoxObject;  
add: { treeContent.treeBoxObject.selection.tree = treeContent.treeBoxObject; } 
context: function syncTreeView (treeContent, treeView, cb){    function ondblclick(event) { treeView.onRouteDblClick(event); };    function onkeypress(event) { treeView.onRouteKeyPress(event); };    function onfocus(event)    { treeView.onRouteFocus(event); };    function onblur(event)     { treeView.onRouteBlur(event); };        function tryAgain()    {        if ("treeBoxObject" in treeContent)        {            syncTreeView(treeContent, treeView, cb);        }        else        {            //dd ("trying to sync " + treeContent.getAttribute("id") + " AGAIN");            setTimeout (tryAgain, 500);        }    };    try    {        if (!("treeBoxObject" in treeContent))            throw "tantrum";                treeContent.treeBoxObject.view = treeView;        if (treeContent.treeBoxObject.selection)            treeContent.treeBoxObject.selection.tree = treeContent.treeBoxObject;    }    catch (ex)    {        setTimeout (tryAgain, 500);        return;    }        if (!treeContent._listenersInstalled)    {        try        {            treeContent.addEventListener("dblclick", ondblclick, false);            treeContent.addEventListener("keypress", onkeypress, false);            treeContent.addEventListener("focus", onfocus, false);            treeContent.addEventListener("blur", onblur, false);        }        catch (ex)        {            dd ("caught exception setting listeners: " + ex);        }        treeContent._listenersInstalled = true;    }        if (typeof cb == "function")        cb();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0ce31a79343e29e27a5102a1ca9099fd6e804946/venkman-views.js/buggy/extensions/venkman/resources/content/venkman-views.js