         @state =
             currentSubmit: if @props.submits then @props.submits[@props.submits.length - 1] else null
             currentDiff: [undefined, undefined]
-        props.setCurrentSubmit?(@state.currentSubmit)
+        @props.setCurrentSubmit?(@state.currentSubmit)
         @setCurrentSubmit = @setCurrentSubmit.bind this
         @setCurrentDiff = @setCurrentDiff.bind this
 

            @setState
                currentSubmit: if @props.submits then @props.submits[@props.submits.length - 1] else null
                currentDiff: [undefined, undefined]
        else
            newState =
                currentSubmit: null

                    newState.currentSubmit = submit
            if not deepEqual(newState, @state)
                @setState(newState)
            @props.setCurrentSubmit?(@state.currentSubmit)

    setCurrentSubmit: (submit) ->
        (e) =>
