     UserInterface.init()
   , false
 
-  window.addEventListener "popstate", (e) ->
-    Mode.reload()
-  , false
-
   window.addEventListener "resize", (e) ->
     UserInterface.resize()
   , false

    @body.style.transform = transform

  @scale: ->
    Transform.apply("scale(/#{@getScaleFactor()})")

  @reset: ->
    Transform.apply('none')

class Mode
  @body = document.body

  @dispatchSingleSlideMode: (e) ->
    slideId = Mode.findSlideId(e.target)


  @current: ->
    id = window.location.hash.substr(1)
    if id? && id.length > 0
      Slide.fromSlideId(id)
    else
      Slide.first()

  nextSection: ->
    next = @nextSectionId()
