mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-09 00:55:46 +01:00
Fix template._sandbox.
This commit is contained in:
@@ -1486,8 +1486,8 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
|
||||
// FIXME: cleanup
|
||||
cleanupValue: config.cleanups.guioptions ||
|
||||
"r" + [k for ([k, v] in iter(groups[1].opts))
|
||||
if (!Dactyl.toolbarHidden(document.getElementById(v[1][0])))].join(""),
|
||||
"rb" + [k for ([k, v] in iter(groups[1].opts))
|
||||
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(),
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// given in the LICENSE.txt file included with this file.
|
||||
"use strict";
|
||||
|
||||
let global = this;
|
||||
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||
defineModule("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
|
||||
// any line breaks are displayed as \n
|
||||
|
||||
Reference in New Issue
Block a user