Don’t clear commands after specs

Commands are typically registered once at eval time. Clearing them
means that commands aren’t available except in the first spec.
This commit is contained in:
Nathan Sobo
2014-09-17 19:11:16 -06:00
parent 0c9fd46030
commit 67ff8f4382
2 changed files with 0 additions and 5 deletions

View File

@@ -121,8 +121,6 @@ beforeEach ->
addCustomMatchers(this)
afterEach ->
atom.commands.clear()
atom.packages.deactivatePackages()
atom.menu.template = []

View File

@@ -178,9 +178,6 @@ class CommandRegistry
break if propagationStopped
currentTarget = currentTarget.parentNode
clear: ->
@listenersByCommandName = {}
class CommandListener
constructor: (@selector, @callback) ->
@specificity = (SpecificityCache[@selector] ?= specificity(@selector))