mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-27 10:45:45 +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())) {
|
for (let name in values(Object.getOwnPropertyNames(modules).reverse())) {
|
||||||
let mod = Object.getOwnPropertyDescriptor(modules, name).value;
|
let mod = Object.getOwnPropertyDescriptor(modules, name).value;
|
||||||
if (mod instanceof ModuleBase) {
|
if (mod instanceof Class) {
|
||||||
if ("cleanup" in mod)
|
if ("cleanup" in mod)
|
||||||
mod.cleanup();
|
mod.cleanup();
|
||||||
if ("destroy" in mod)
|
if ("destroy" in mod)
|
||||||
|
|||||||
Reference in New Issue
Block a user