1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 20:32:27 +01:00

Fix signals breakage.

This commit is contained in:
Kris Maglione
2014-02-18 11:59:18 -08:00
parent 5f87bc6911
commit f33a48ff2a

View File

@@ -219,8 +219,10 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
this._observers[type] = this._observers[type]
.filter(callback => {
callback = callback.get();
if (callback)
if (callback) {
util.trapErrors(() => callback.apply(null, args));
return true;
}
});
},