 
     rte.removeSel leftSel
 
+  # Unbind selection from word
   unbind: ->
     @left.removeSel(@, "left")
     @right.removeSel(@, "right")
+
+    @left = null
+    @right = null
 
 # Class describing the Rich Text Editor type
 #

  #   @param [Rte] rte a rich-text editor (Rte) instance
  #   @option options [Object] style the style of the selection
  constructor: (start, end, rte, style)->

    if not _.isUndefined(start) and not _.isUndefined(end) and not _.isUndefined(rte)
      if !( _.isNumber(start) and
            _.isNumber(end))

        break
      index += 1

    # unbind selection
    selection.unbind

if window?
  window.Rte = Rte
  window.Selection = Selection
