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

      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

    isMobile: ->
      return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)

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