1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-04 22:05:46 +01:00

Don't depend on direct proxies quite yet.

This commit is contained in:
Kris Maglione
2014-02-17 23:01:48 -08:00
parent aaeb5665ca
commit 5f87bc6911

View File

@@ -6,9 +6,10 @@
var { classes: Cc, interfaces: Ci, results: Cr, utils: Cu } = Components;
var Cs = Proxy(Components.stack, {
get: function Cs_get(target, prop) Components.stack.caller[prop]
});
if (typeof Proxy == "function")
var Cs = Proxy(Components.stack, {
get: function Cs_get(target, prop) Components.stack.caller[prop]
});
function module(url) {
let obj = {};
@@ -981,7 +982,7 @@ Class.prototype = {
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);
this.timeouts.push(timer);
return timer;