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


bn = 'beatmap-discussion-new'

BeatmapDiscussions.NewDiscussion = React.createClass
  mixins: [React.addons.PureRenderMixin]


  getInitialState: ->
    message: ''
    timestamp: null


  componentDidMount: ->
    @throttledPost = _.throttle @post, 1000


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


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

      true


  parseTimestamp: =>
    timestampRe = @state.message.match /\b(\d{2,}):(\d{2})[:.](\d{3})\b/

    @setState timestamp:
