 {div, span} = React.DOM
 
 Blocker = React.createClass
+
+  locked: false
+
   getInitialState: ->
     havePointerLock: false
     pointerLocked: false

        span {}, title
        span {}, message

module.exports = (props = null) -> React.createElement(Blocker, props)
      document["pointerLockElement"] is blocker or
      document["mozPointerLockElement"] is blocker or
      document["webkitPointerLockElement"] is blocker

    if @locked != pointerLocked
      @locked = pointerLocked
      @setState(pointerLocked: pointerLocked)
      @props.sendState(pointerLocked)

  componentDidMount: ->
    havePointerLock =
