fixup! Clear atom.commands after each spec

This commit is contained in:
Nathan Sobo
2014-09-11 14:15:35 -06:00
parent 8f9cf3c790
commit e4264035d8

View File

@@ -84,6 +84,9 @@ class CommandRegistry
commands
clear: ->
@listenersByCommandName = {}
class CommandListener
constructor: (@selector, @callback) ->
@specificity = (SpecificityCache[@selector] ?= specificity(@selector))