 _ = require 'underscore'
+moment = require 'moment'
 {CrudConfig, makeSimpleStore, extendConfig} = require './helpers'
 
 CREATE_KEY = "CREATING"

    _.extend(plan, {title})
    @emitChange()

  updateDueAt: (id, due_at="") ->
    plan = @_getPlan(id)
    _.extend(plan, {due_at: due_at.toISOString()})
    @emitChange()


  publish: (id) ->

  create: (due_at = new moment()) ->
    @_local[CREATE_KEY] = {
      due_at: due_at
    }
