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

    ScriptApp.getProjectTriggers().map (item) ->
      item.getHandlerFunction()
  dump config
  flushLog()
  return


      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)
