Set ::visible to false on panels when they are destroyed

Esse commit está contido em:
Nathan Sobo
2014-12-09 13:09:36 -07:00
commit 966360e022
2 arquivos alterados com 5 adições e 0 exclusões
+4
Ver Arquivo
@@ -21,3 +21,7 @@ describe "Panel", ->
panel.show()
expect(panel.isVisible()).toBe true
expect(spy).toHaveBeenCalledWith(true)
panel.destroy()
expect(panel.isVisible()).toBe false
expect(spy).toHaveBeenCalledWith(false)
+1
Ver Arquivo
@@ -21,6 +21,7 @@ class Panel
# Public: Destroy and remove this panel from the UI.
destroy: ->
@hide()
@emitter.emit 'did-destroy', this
@emitter.dispose()