     doRemove = () =>
       logger.debug("User confirmed removing project")
       Session.set("isWaiting", true)
-      logger.debug("isWaiting enabled")
       try
         logger.info("Removing project...")
         Meteor.call("removeProject", @projectId, (error) ->

  editor.ace.clearSelection()
  editor.ace.gotoLine(0, 0)
  editor.ace.session.setUseWrapMode(true)

Template.editProject.onRendered(->
  logger.debug("Project editing view rendered")

  'change #tags-input': onChange
  'click #save-project': ->
    if !Session.get("isEditingProject")
      logger.debug("Ignoring request to save project, since session var isEditingProject is false")
      return

    Session.set("isWaiting", true)
    try
      saveProject(@owner, @projectId)
    catch error
      Session.set("isWaiting", false)
      throw error
  'click #cancel-edit': ->
    doCancel = () ->
      logger.debug("User confirmed canceling edit")
