         onClick: @post
 
 
-  validPost: ->
+  validPost: =>
     return false if @state.message.length == 0
 
     if @props.mode == 'timeline'

    .always LoadingOverlay.hide


  submitButton: (type) ->
    el BigButton,
      key: type
      modifiers: ['beatmap-discussion']


bn = 'beatmap-discussion-new'

class BeatmapDiscussions.NewDiscussion extends React.PureComponent
  constructor: (props) ->
    super props

    @throttledPost = _.throttle @post, 1000

    @state =
      message: ''
      timestamp: null


  componentWillUnmount: =>
    @postXhr?.abort()
    @throttledPost.cancel()


  render: =>
    div
      className: 'osu-page osu-page--small'
      div
