   # @param [Selection] s the selection to compare to this
   #
   equals: (selection)->
-    @startPos.word == selection.startPos.word and
-    @startPos.pos == selection.startPos.pos and
-    @endPos.word == selection.endPos.word and
-    @endPos.pos == selection.endPos.pos
+    @left == selection.left and
+    @leftPos == selection.leftPos and
+    @right == selection.right and
+    @rightPos == selection.rightPos
 
   # Compares *the bounds* of two selections
   #

  removeSel: (selection) ->
    index = 0
    array = @_rte.selections
    for element in array
      if (element.equals(selection) and (element.style == selection.style))
        array.splice index, 1
        break
      index += 1

    # unbind selection
    selection.unbind

    newSel.unbind()
    newSel.startPos = @startPos
    newSel.endPos = @endPos

    newSel.left = @left
    newSel.leftPos = @leftPos
    newSel.right = @right
    newSel.rightPos = @rightPos
    newSel.bind()

    newSel
