mirror of
https://github.com/atom/atom.git
synced 2026-02-07 13:14:55 -05:00
Remove a package's stylesheets when it is deactivated
This commit is contained in:
committed by
Nathan Sobo
parent
1e51750b6c
commit
5d822b7305
@@ -95,6 +95,7 @@ class AtomPackage extends Package
|
||||
deactivate: ->
|
||||
syntax.removeGrammar(grammar) for grammar in @grammars
|
||||
keymap.remove(path) for [path] in @keymaps
|
||||
removeStylesheet(path) for [path] in @stylesheets
|
||||
@mainModule?.deactivate?()
|
||||
|
||||
requireMainModule: ->
|
||||
|
||||
Reference in New Issue
Block a user