rem: if (event.target.localName != "treecell" && event.target.localName != "treeitem" && event.target.localName != "image") 
add: var t = event.originalTarget;  if (t.localName != "treecell" && t.localName != "treeitem" && t.localName != "image") 
context: function ThreadPaneOnClick(event){    if (event.target.localName != "treecell" &&        event.target.localName != "treeitem" &&        event.target.localName != "image")        return;    var targetclass = event.target.getAttribute('class');        if (event.target.localName == "image" && targetclass != 'tree-cell-twisty')      targetclass = event.target.parentNode.getAttribute('class');    //dump('targetclass = ' + targetclass + '\n');	if(targetclass.indexOf('unreadcol') != -1)	{		ToggleMessageRead(event.target.parentNode.parentNode.parentNode);	}	if(targetclass.indexOf('flagcol') != -1)	{		ToggleMessageFlagged(event.target.parentNode.parentNode.parentNode);	}    else 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")		{			//open all of the children of the treeitem			msgNavigationService.OpenTreeitemAndDescendants(treeitem);		}    }	else if(event.detail == 2)	{		ThreadPaneDoubleClick(event.target.parentNode.parentNode);	}}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/a3ccbff982ba7291d0c9dacdbacc4689d0f75456/threadPane.js/buggy/mailnews/base/resources/content/threadPane.js