rem: if (e.which == 1) { 
add:  var bx_span_anchor = BX_find_bitfluxspanNode(BX_selection.anchorNode); var bx_span_offset  = BX_find_bitfluxspanNode(BX_selection.focusNode); if (bx_span_anchor != bx_span_offset) { if (bx_span_anchor.compareTreePosition(bx_span_offset) & document.TREE_POSITION_PRECEDING) {  BX_selection.extend(bx_span_anchor,0); } else { BX_selection.extend(bx_span_anchor,bx_span_anchor.childNodes.length);  } }  if (e.which == 1) { 
context: function BX_RangeCaptureOnMouseUp(e) {    try {        if (e.target && BX_elements[e.target.nodeName] && BX_elements[e.target.nodeName]["altMenu"] && BX_find_bitfluxspanNode(e.target)) {            eval(BX_elements[e.target.nodeName]["altMenu"]+"(e.target)");            return;        }        BX_get_selection();        if (e.target.nodeName != "#text" && e.target.nodeName != BX_selection.anchorNode.parentNode.nodeName) {            BX_selection.collapse( e.target,0);            BX_range = BX_selection.getRangeAt(0);        }        if (e.which == 1) {            BX_popup.style.top = window.innerHeight + "px";            BX_popup.style.visibility = "hidden";        }    } catch(err) {        BX_errorMessage(err);    };    BX_updateButtons();    BX_range_length = 0;    BX_range_length = BX_range.toString().length;}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js