1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 06:22:26 +01:00

Trigger plugin onUnload handlers at shutdown.

--HG--
extra : rebase_source : 4649d9517d990bbc1dc9efc7b73518bdaa5919ec
This commit is contained in:
Kris Maglione
2009-10-10 23:43:06 -04:00
parent ddcdca1e59
commit cf08acaf69
3 changed files with 3 additions and 0 deletions

View File

@@ -141,6 +141,9 @@ function IO() //{{{
downloadManager.addListener(downloadListener);
liberator.registerObserver("shutdown", function () {
downloadManager.removeListener(downloadListener);
for (let [, plugin] in Iterator(plugins.contexts))
if (plugin.onUnload)
plugin.onUnload();
});
/////////////////////////////////////////////////////////////////////////////}}}