 
     chapters = _.map(TocStore.get(), @renderChapterPanels)
 
-    <BS.Modal backdrop={true} onRequestHide=@doneWithSelection>
+    <BS.Modal backdrop={true} onRequestHide={@doneWithSelection}>
       <div className="modal-body select-reading-modal">
         {chapters}
       </div>

  update: () ->
    id = @getPlanId()
    plan = TaskPlanStore.get(id)
    if (id isnt plan.id)
      @setState({id: plan.id})
    else
      @setState {}

  setDueAt: (value) ->
    id = @getPlanId()

    else
      id = TaskPlanStore.freshLocalId()
      plan = TaskPlanActions.create(id, due_at: new Date())
    {id}

  componentWillMount: -> TaskPlanStore.addChangeListener(@update)
