📝 Give stronger recommendation on deactivate

Many packages don't clean up properly on update, causing strange
behavior until restart. Simply stating that the `deactivate` method is
optional is enough to let people know that it isn't required for the
common case.
This commit is contained in:
Lee Dohm
2015-02-01 08:35:57 -08:00
parent 00b79e69f1
commit 6eed4e461f

View File

@@ -98,9 +98,9 @@ module's `activate` method so you can restore your view to where the user left
off.
- `deactivate()`: This **optional** method is called when the window is shutting
down. If your package is watching any files or holding external resources in any
other way, release them here. If you're just subscribing to things on window,
you don't need to worry because that's getting torn down anyway.
down, or when your package is being updated or disabled. If your package is
watching any files, holding external resources, providing commands or subscribing
to events release them here.
### Simple Package Code