rem: var bucketTree = document.getElementById("attachmentBucket"); if (bucketTree) { var body = document.getElementById("bucketBody"); return (body && body.hasChildNodes() && (bucketTree == top.document.commandDispatcher.focusedElement)); 
add: var bucketList = document.getElementById("attachmentBucket"); if (bucketList) { return (bucketList && bucketList.hasChildNodes() && (bucketList == top.document.commandDispatcher.focusedElement)); 
context: function MessageHasAttachments(){  var bucketTree = document.getElementById("attachmentBucket");  if (bucketTree)  {    var body = document.getElementById("bucketBody");    return (body && body.hasChildNodes() && (bucketTree == top.document.commandDispatcher.focusedElement));  }  return false;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/MsgComposeCommands.js/clean/mailnews/compose/resources/content/MsgComposeCommands.js