             }
             lmrMailbox: @props.key
             lmrPage: @state.currentPage
-        }, (data) =>
-            @setState({messages: data})
-        )
+        }, (data) => @setState({
+            messages: data
+        }))
 
     componentDidMount: ->
 


    displayName: 'Pager'

    getInitialState: -> {
        current: 1
    }

    render: ->
        totalPages = Math.ceil(@props.totalItems / 10)
        makePagerItem = (target, text=target) => FM.PagerItem({
            key: target
            current: @state.current
            target: target
            total: totalPages
            handleClick: @props.handleClick
            text
        })
        previous = makePagerItem(@state.current - 1, "«")
        next = makePagerItem(@state.current + 1, "»")
        # TODO: handle a large number of pages
        items = (makePagerItem(i) for i in [1..totalPages])
        return React.DOM.ul({className: "pagination"}, previous, items, next)

    displayName: 'MailboxList'

    getInitialState: -> {
        mailboxes: null
    }

    componentDidMount: ->
