1
0
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:
Kris Maglione
2014-03-15 14:32:58 -07:00
parent e1a6446fcf
commit 5d12a470bc
3 changed files with 35 additions and 14 deletions

View File

@@ -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 = {};