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