mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-30 02:23:33 +02:00
Fix template._sandbox.
This commit is contained in:
@@ -1486,8 +1486,8 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
|
|
||||||
// FIXME: cleanup
|
// FIXME: cleanup
|
||||||
cleanupValue: config.cleanups.guioptions ||
|
cleanupValue: config.cleanups.guioptions ||
|
||||||
"r" + [k for ([k, v] in iter(groups[1].opts))
|
"rb" + [k for ([k, v] in iter(groups[1].opts))
|
||||||
if (!Dactyl.toolbarHidden(document.getElementById(v[1][0])))].join(""),
|
if (!Dactyl.toolbarHidden(document.getElementById(v[1][0])))].join(""),
|
||||||
|
|
||||||
values: array(groups).map(function (g) [[k, v[0]] for ([k, v] in Iterator(g.opts))]).flatten(),
|
values: array(groups).map(function (g) [[k, v[0]] for ([k, v] in Iterator(g.opts))]).flatten(),
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
// given in the LICENSE.txt file included with this file.
|
// given in the LICENSE.txt file included with this file.
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
let global = this;
|
||||||
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||||
defineModule("template", {
|
defineModule("template", {
|
||||||
exports: ["Binding", "Template", "template"],
|
exports: ["Binding", "Template", "template"],
|
||||||
@@ -270,7 +271,7 @@ var Template = Module("Template", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_sandbox: Class.Memoize(function () Cu.Sandbox(this, { wantXrays: false })),
|
_sandbox: Class.Memoize(function () Cu.Sandbox(global, { wantXrays: false })),
|
||||||
|
|
||||||
// if "processStrings" is true, any passed strings will be surrounded by " and
|
// if "processStrings" is true, any passed strings will be surrounded by " and
|
||||||
// any line breaks are displayed as \n
|
// any line breaks are displayed as \n
|
||||||
|
|||||||
Reference in New Issue
Block a user