1
0
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:
Kris Maglione
2011-08-23 18:00:43 -04:00
parent ee55f89823
commit a1743165d4
2 changed files with 4 additions and 3 deletions

View File

@@ -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(),

View File

@@ -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