mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 21:14:12 +01:00
Use proxy of window for modules prototype. Closes issue #928.
This commit is contained in:
@@ -6,10 +6,9 @@
|
||||
|
||||
var { classes: Cc, interfaces: Ci, results: Cr, utils: Cu } = Components;
|
||||
|
||||
if (typeof Proxy == "function")
|
||||
var Cs = Proxy(Components.stack, {
|
||||
get: function Cs_get(target, prop) Components.stack.caller[prop]
|
||||
});
|
||||
var Cs = new Proxy(Components.stack, {
|
||||
get: function Cs_get(target, prop) Components.stack.caller[prop]
|
||||
});
|
||||
|
||||
function module(url) {
|
||||
let obj = {};
|
||||
|
||||
Reference in New Issue
Block a user