1
0
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:
Kris Maglione
2011-01-04 01:44:59 -05:00
parent 0d9292f09b
commit f8476edbbd

View File

@@ -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)