rem: var tree = document.getElementById("fieldList"); if ( event.target == tree ) { return( true); 
add: var tree = document.getElementById("fieldList"); if ( event.target == tree ) { return( true); 
context: function BeginDrag( event){	top.dragStart = false;	var tree = document.getElementById("fieldList");	if ( event.target == tree ) {		return( true);					// continue propagating the event    }	if (!tree) {		return( false);	}	var dragService = Components.classes["@mozilla.org/widget/dragservice;1"].getService();	if ( dragService ) dragService = dragService.QueryInterface(Components.interfaces.nsIDragService);	if ( !dragService )	{		return(false);	}	var trans = Components.classes["@mozilla.org/widget/transferable;1"].createInstance();	if ( trans ) trans = trans.QueryInterface(Components.interfaces.nsITransferable);	if ( !trans ) {		return(false);	}	var genData = Components.classes["@mozilla.org/supports-wstring;1"].createInstance();	if ( genData ) genData = genData.QueryInterface(Components.interfaces.nsISupportsWString);	if (!genData) {		return(false);	}    // trans.addDataFlavor( "text/unicode");    trans.addDataFlavor( top.transferType);	// the index is on the <treeitem> which is two levels above the <treecell> which is	// the target of the event.	if (event.target.getAttribute( 'noDrag') == "true") {		return( false);	}	var index = event.target.parentNode.parentNode.getAttribute("field-index");	if (!index)		index = event.target.parentNode.parentNode.parentNode.getAttribute( "field-index");	if (!index)		return( false);	var indexStr = ("" + index);	genData.data = indexStr;		// trans.setTransferData ( "text/unicode", genData, indexStr.length * 2);	trans.setTransferData ( top.transferType, genData, indexStr.length * 2);	var transArray = Components.classes["@mozilla.org/supports-array;1"].createInstance();	if ( transArray ) transArray = transArray.QueryInterface(Components.interfaces.nsISupportsArray);	if ( !transArray )	{		return(false);	}	// put it into the transferable as an |nsISupports|	var genTrans = trans.QueryInterface(Components.interfaces.nsISupports);	transArray.AppendElement(genTrans);		var nsIDragService = Components.interfaces.nsIDragService;	top.dragStart = true;	dragService.invokeDragSession ( event.target, transArray, null, nsIDragService.DRAGDROP_ACTION_MOVE);		return( false);  // don't propagate the event if a drag has begun}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0b2dd2b2d2fd037df917e07645fa019a963332a5/fieldMapImport.js/clean/mailnews/import/resources/content/fieldMapImport.js