       slide.replaceHistory()
 
   @enterSlideMode: ->
-    @body.className = "full"
+    @body.className = @slideModeIndicator
     Transform.scale()
 
   @enterListMode: ->
-    @body.className = "list"
+    @body.className = @listModeIndicator
     Transform.reset()
 
   @isListMode: ->
-    !@body.classList.contains("full")
+    !Mode.isSlideMode()
 
   @isSlideMode: ->
-    !Mode.isListMode()
+    @body.classList.contains(@slideModeIndicator)
 
   @switchToListMode: ->
     Mode.enterListMode()

    UserInterface.init()
  , false

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

  window.addEventListener "resize", (e) ->
    UserInterface.resize()
  , false

    slide = Slide.current()
    slide.pushHistory()
    slide.updateProgress()

  # private

