       $("#reveal").hide()
 
 handleModeChange = mktee(setStylesheet, toggleDomElemsForMode)
-mode_observable.subscribe(handleModeChange)
+clientModeChangeEventstream.subscribe(handleModeChange)
 
 ################################################################################
 # transform org-mode slides to Reveal.js section tags

  PRESENTER: ["/common.css", "/presenter.css"]
  ORG_MODE: ["/common.css", "/presenter.css"]

exports.mode_observable = mode_observable = new Rx.Subject()
setPresentationMode = (mode) -> mode_observable.onNext(mode)

setStylesheet = (mode) ->
  $("style").remove()

$ = require "jquery"
Rx = require "rx"
_ = require "underscore"
{EVENTS} = require "./app.core"
{mktee} = require("./utils")

exports.clientModeChangeEventstream = clientModeChangeEventstream = new Rx.Subject()
################################################################################
MODES =
  AUDIENCE: "AUDIENCE",
