 
     # if they have two styles that differ
     for key, val of @style
-      if selection.style[key] != val
+      if not selection.style.hasOwnProperty(key)
         return
     for key, val of selection.style
-      if val != @style[key]
+      if not @style.hasOwnProperty(key)
         return
 
     if @atLeftOf selection # remove @

  #
  deleteSel: (selection) ->
    if not selection.isValid()
      console.log selection
      throw new Error "Invalid selection, got", selection

    left = selection.left

        @deleteSel selection

      else if delta.insert?
        @insert position, delta.insert
        if delta.attributes?
          selection = new Selection position, (position + delta.insert.length-1), @
