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:
@@ -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;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user