mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 07:34:13 +01:00
Don't depend on direct proxies quite yet.
This commit is contained in:
@@ -6,9 +6,10 @@
|
|||||||
|
|
||||||
var { classes: Cc, interfaces: Ci, results: Cr, utils: Cu } = Components;
|
var { classes: Cc, interfaces: Ci, results: Cr, utils: Cu } = Components;
|
||||||
|
|
||||||
var Cs = Proxy(Components.stack, {
|
if (typeof Proxy == "function")
|
||||||
get: function Cs_get(target, prop) Components.stack.caller[prop]
|
var Cs = Proxy(Components.stack, {
|
||||||
});
|
get: function Cs_get(target, prop) Components.stack.caller[prop]
|
||||||
|
});
|
||||||
|
|
||||||
function module(url) {
|
function module(url) {
|
||||||
let obj = {};
|
let obj = {};
|
||||||
@@ -981,7 +982,7 @@ Class.prototype = {
|
|||||||
Cu.reportError(e);
|
Cu.reportError(e);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let frame = Cs.caller;
|
let frame = Components.stack.caller;
|
||||||
let timer = services.Timer(timeout_notify, timeout || 0, services.Timer.TYPE_ONE_SHOT);
|
let timer = services.Timer(timeout_notify, timeout || 0, services.Timer.TYPE_ONE_SHOT);
|
||||||
this.timeouts.push(timer);
|
this.timeouts.push(timer);
|
||||||
return timer;
|
return timer;
|
||||||
|
|||||||
Reference in New Issue
Block a user