     @setRootNode(rootNode) # restore listeners for commands in snapshot
 
   handleCommandEvent: (originalEvent) =>
+    originalEvent.__handledByCommandRegistry = true
+
     propagationStopped = false
     immediatePropagationStopped = false
     matched = false

      listenersForCommand.splice(listenersForCommand.indexOf(listener), 1)
      if listenersForCommand.length is 0
        delete @listenersByCommandName[commandName]
        @rootNode.removeEventListener(commandName, @handleCommandEvent, true)

  # Public: Find all registered commands matching a query.
  #

    @rootNode = newRootNode

    for commandName of @listenersByCommandName
      @removeCommandListener(oldRootNode, commandName)
      @addCommandListener(newRootNode, commandName)

  # Public: Add one or more command listeners associated with a selector.
  #
