rem: if (!(gSynchronizeOutliner.outlinerBoxObject.view.isContainerOpen(row.value))) { var serverType = GetFolderAttribute(gSynchronizeOutliner, folderResource, "ServerType"); 
add: if (!(gSynchronizeTree.treeBoxObject.view.isContainerOpen(row.value))) { var serverType = GetFolderAttribute(gSynchronizeTree, folderResource, "ServerType"); 
context: function onSynchronizeClick(event){    // we only care about button 0 (left click) events    if (event.button != 0)      return;    var row = {}    var col = {}    var elt = {}    gSynchronizeOutliner.outlinerBoxObject.getCellAt(event.clientX, event.clientY, row, col, elt);    if (row.value == -1)      return;    if (elt.value == "twisty") {        var folderResource = GetFolderResource(gSynchronizeOutliner, row.value);        var msgFolder = folderResource.QueryInterface(Components.interfaces.nsIMsgFolder);        if (!(gSynchronizeOutliner.outlinerBoxObject.view.isContainerOpen(row.value))) {            var serverType = GetFolderAttribute(gSynchronizeOutliner, folderResource, "ServerType");            // imap is the only server type that does folder discovery            if (serverType != "imap") return;            if (GetFolderAttribute(gSynchronizeOutliner, folderResource, "IsServer") == "true") {                var server = msgFolder.server;                server.performExpand(gMsgWindow);            }            else {                var imapFolder = folderResource.QueryInterface(Components.interfaces.nsIMsgImapMailFolder);                if (imapFolder) {                  imapFolder.performExpand(gMsgWindow);                }            }        }    }    else {      if (col.value == "syncCol") {           UpdateNode(GetFolderResource(gSynchronizeOutliner, row.value), row.value);      }    }}  
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/07d96867f11683becf5e1a6ca5e64e6a9324c957/msgSynchronize.js/clean/mailnews/base/resources/content/msgSynchronize.js