 
     string = @rtm.getFromModel @getFile().path
 
+    return  if @isChangedByMe change
+
+    string = @rtm.getFromModel @getFile().path
     return  unless changedString is string
-    return  if @isChangedByMe change
 
     @applyChange change
 

    file.once 'fs.delete.finished', =>
      KD.getSingleton('appManager').tell 'IDE', 'handleFileDeleted', file

    @once 'RealTimeManagerSet', @bound 'listenCollaborativeStringChanges'



      @setLineWidgets row, column, origin


  setContentFromCollaborativeString: ->

    {path} = @getFile()

    unless string = @rtm.getFromModel path
      return @rtm.create 'string', path, @getContent()

    @setContent string.getText(), no


  listenCollaborativeStringChanges: ->

    return  unless string = @rtm.getFromModel @getFile().path

    @rtm.bindRealtimeListeners string, 'string'

