   # Public: Unsubscribe all handlers.
   dispose: ->
     @handlersByEventName = null
-    @isDisposed = true
+    @disposed = true
 
   ###
   Section: Event Subscription

  #
  # Returns a {Disposable} on which `.dispose()` can be called to unsubscribe.
  on: (eventName, handler, unshift=false) ->
    if @isDisposed
      throw new Error("Emitter has been disposed")

    if typeof handler isnt 'function'


  # Private: Used by the disposable.
  off: (eventName, handlerToRemove) ->
    return if @disposed

    if oldHandlers = @handlersByEventName[eventName]
      newHandlers = []
