mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 10:34:11 +01:00
Fix cleanup issue.
This commit is contained in:
@@ -57,7 +57,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
|
||||
for (let name in values(Object.getOwnPropertyNames(modules).reverse())) {
|
||||
let mod = Object.getOwnPropertyDescriptor(modules, name).value;
|
||||
if (mod instanceof ModuleBase) {
|
||||
if (mod instanceof Class) {
|
||||
if ("cleanup" in mod)
|
||||
mod.cleanup();
|
||||
if ("destroy" in mod)
|
||||
|
||||
Reference in New Issue
Block a user