rem: selection.clearSelection(); 
add: selection.removeAllRanges(); 
context: function EditorSetSelectionFromOffsets(selRanges){  var rangeArr, start, end, node, offset;  var selection = editorShell.editorSelection;  selection.clearSelection();  for (var i = 0; i < selRanges.length; i++)  {    rangeArr = selRanges[i];    start    = rangeArr[0];    end      = rangeArr[1];    var range = editorShell.editorDocument.createRange();    node   = EditorGetNodeFromOffsets(start[0]);    offset = start[1];    range.setStart(node, offset);    node   = EditorGetNodeFromOffsets(end[0]);    offset = end[1];    range.setEnd(node, offset);    selection.addRange(range);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a0dda75954d01a40f89595c1a6fc21631a023e35/editor.js/buggy/editor/ui/composer/content/editor.js