   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'

      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()


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

          $ct = $(evt.currentTarget)
