       ScriptApp.deleteTrigger triggers[i]
     prefix = ""
     prefix = "#{namespace}." if namespace
+    properties.setProperty 'namespace', namespace
     ScriptApp.newTrigger(prefix + "edit").forSpreadsheet(spreadsheet)
     .onEdit().create()
     ScriptApp.newTrigger(prefix + "change").forSpreadsheet(spreadsheet)

  flushLog()
  return

initialize = ->
  dump "initialize."
  readConfig()
  cacheSheetRows()
  ###
  SpreadsheetApp.getUi().createAddonMenu()
  .addItem('Start', 'showSidebar')
  .addToUi();
  ###
  return

#
#  SpreadsheetApp.getUi().createAddonMenu()
#  .addItem('Start', 'showSidebar')
#  .addToUi();
#

###
Event handlers

###
Called onOpen
###
onOpen = (e) ->
  dump "onOpen."
  initialize(e)
  return

edit = (e) ->
