       history.pushState(url: url, title, url)
 
       $(window).on 'popstate', (evt) =>
-        url = evt.originalEvent.state.url
-
         $(@elements.header).find('li').removeClass 'active'
         $('body').removeClass 'api-page'
         $(@elements.nav).empty()

  class ProcessDocumentation
    constructor: (@options) ->
      {@elements} = options

    initPrettyPrint: ->
      $('pre').addClass 'prettyprint'


    bindHeaderNavEvents: ->
      $(@elements.header).find('a').on 'click', (evt) =>
        if history.pushState or @isMobile isnt true
          evt.preventDefault()

          $ct = $(evt.currentTarget)
