     @file.on 'fs.save.finished', =>
       ace.removeModifiedFromTab()
       @updateFileModifiedTime()
+
+    @file.on 'fs.delete.finished', @bound 'removeCollaborativeString'
 
     @file.on 'FileContentsNeedsToBeRefreshed', =>
       ace.fetchContents (err, content) =>

    return  unless changedString is string

    @applyChange change


  isChangedByMe: (change) -> return change.isLocal

    ace = @getAce()

    ace.ready =>
      @setContent string.getText(), no

      if ace.contentChanged = ace.isCurrentContentChanged()
        ace.emit 'FileContentChanged'


  listenCollaborativeStringChanges: ->
