mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 18:24:11 +01:00
Trigger plugin onUnload handlers at shutdown.
--HG-- extra : rebase_source : 4649d9517d990bbc1dc9efc7b73518bdaa5919ec
This commit is contained in:
@@ -141,6 +141,9 @@ function IO() //{{{
|
|||||||
downloadManager.addListener(downloadListener);
|
downloadManager.addListener(downloadListener);
|
||||||
liberator.registerObserver("shutdown", function () {
|
liberator.registerObserver("shutdown", function () {
|
||||||
downloadManager.removeListener(downloadListener);
|
downloadManager.removeListener(downloadListener);
|
||||||
|
for (let [, plugin] in Iterator(plugins.contexts))
|
||||||
|
if (plugin.onUnload)
|
||||||
|
plugin.onUnload();
|
||||||
});
|
});
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////}}}
|
/////////////////////////////////////////////////////////////////////////////}}}
|
||||||
|
|||||||
0
common/modules/storage.jsm
Executable file → Normal file
0
common/modules/storage.jsm
Executable file → Normal file
0
muttator/content/mail.js
Executable file → Normal file
0
muttator/content/mail.js
Executable file → Normal file
Reference in New Issue
Block a user