1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-15 13:35:48 +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

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