 
     Timeout.clear(timeout) for _name, timeout of @timeouts
     xhr?.abort() for _name, xhr of @xhr
-    @props.container.dataset.beatmapsetDiscussionState = JSON.stringify(@state)
 
 
   render: =>

    $.subscribe 'beatmapDiscussionPost:markRead.beatmapDiscussions', @markPostRead
    $(document).on 'ajax:success.beatmapDiscussions', '.js-beatmapset-discussion-update', @ujsDiscussionUpdate
    $(document).on 'click.beatmapDiscussions', '.js-beatmap-discussion--jump', @jumpToClick

    @jumpToDiscussionByHash()
    @timeouts.checkNew = Timeout.set @checkNewTimeoutDefault, @checkNew

    BeatmapDiscussionHelper.urlParse(null, discussions)


  saveStateToContainer: =>
    @props.container.dataset.beatmapsetDiscussionState = JSON.stringify(@state)


  setCurrentPlaymode: (e, {mode}) =>
    @update e, playmode: mode

