rem: var targetclass = event.target.getAttribute('class'); debug('targetclass = ' + targetclass + '\n'); 
add: var t = event.originalTarget; 
context: function FolderPaneOnClick(event){	debug("in FolderPaneClick()\n");    var targetclass = event.target.getAttribute('class');    debug('targetclass = ' + targetclass + '\n');    if (targetclass == 'tree-cell-twisty') {        // The twisty is nested three below the treeitem:        // <treeitem>        //   <treerow>        //     <treecell>        //         <titledbutton class="tree-cell-twisty"> <!-- anonymous -->        var treeitem = event.target.parentNode.parentNode.parentNode;		var open = treeitem.getAttribute('open');		if(open == "true") {			//dump("twisty open\n");			var item = event.target.parentNode.parentNode.parentNode;			if (item.localName == "treeitem") {				var isServer = (treeitem.getAttribute('IsServer') == "true");				if (isServer) {	    			var uri = treeitem.getAttribute("id");					var server = GetServer(uri);					if (server) {						server.PerformExpand(msgWindow);					}				}				else {					var isImap = (treeitem.getAttribute('ServerType') == "imap");					if (isImap) {		    			var uri = treeitem.getAttribute("id");						var folder = GetMsgFolderFromUri(uri);						if (folder) {							var imapFolder = folder.QueryInterface(Components.interfaces.nsIMsgImapMailFolder);							if (imapFolder) {								imapFolder.PerformExpand(msgWindow);							}						}					}				}			}		}    }	else if(event.detail == 2)	{		var item = event.target.parentNode.parentNode;		if (item.localName == "treeitem")			FolderPaneDoubleClick(item);	}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a3ccbff982ba7291d0c9dacdbacc4689d0f75456/msgMail3PaneWindow.js/clean/mailnews/base/resources/content/msgMail3PaneWindow.js