add: 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; }  
context: function syncTreeView (treeContent, treeView, cb){    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 (typeof cb == "function")        cb();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b0b8cec04bd582c27a41817979fe87561132d01d/venkman-views.js/buggy/extensions/venkman/resources/content/venkman-views.js