   sendOperation: (revision, operation, selection) ->
     self = this
 
-    console.log ['send op', arguments...]
     Meteor.call('sendOperation', @filePath, revision, operation,
       selection, -> self.trigger('ack'))
 


# note: this isn't called when switching between files
Template.fileEdit.destroyed = ->
  console.log 'destroyed'
  if GitRt.cm
    $(GitRt.cm.getWrapperElement()).remove()
    delete GitRt.cm


Deps.autorun ->
  fileInfo = FileInfo.findOne()
  if fileInfo
    # TODO is GitRt.cm guaranteed to be set here? looks like no
    try
