         break
 
     # unbind selection
-    selection.unbind
+    selection.unbind()
 
 if window?
   window.Rte = Rte

    selection.in(@)


  # Returns true if the given selection and this selection are contiguous
  # and this selection is at left of the given one
  #
  # @param [Selection] selection the selection to compare to this
  atLeftOf: (selection) ->
    (@right == selection.left and
     @rightPos == selection.leftPos)

  #TODO
  setStyle: (@style) ->

  # Validate a selection if the start is before the end of the selection
  #
  isValid: ->
    @lt(@right, @rightPos, "left")


    newSel.right = @right
    newSel.rightPos = @rightPos

    newSel.bind @left, @right

    newSel

