mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-20 10:45:46 +01:00
Make Teledactyl minimally functional, albeit with quite a lot of errors on the console.
This commit is contained in:
@@ -873,7 +873,7 @@ Class.prototype = {
|
||||
return services.Timer(timeout_notify, timeout || 0, services.Timer.TYPE_ONE_SHOT);
|
||||
}
|
||||
};
|
||||
memoize(Class.prototype, "closure", function closure() {
|
||||
Class.makeClosure = function makeClosure() {
|
||||
const self = this;
|
||||
function closure(fn) function _closure() {
|
||||
try {
|
||||
@@ -896,7 +896,8 @@ memoize(Class.prototype, "closure", function closure() {
|
||||
});
|
||||
}, this);
|
||||
return closure;
|
||||
});
|
||||
};
|
||||
memoize(Class.prototype, "closure", Class.makeClosure);
|
||||
|
||||
/**
|
||||
* A base class generator for classes which implement XPCOM interfaces.
|
||||
|
||||
Reference in New Issue
Block a user