mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 12:54:12 +01:00
Merge addon-common module loading code to fix Minefield.
--HG-- extra : rebase_source : 6b5f0dc0a575a6d21892e18cbb56ab0230382356
This commit is contained in:
@@ -5,11 +5,12 @@
|
||||
/* use strict */
|
||||
|
||||
let global = this;
|
||||
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||
defineModule("template", {
|
||||
exports: ["Binding", "Template", "template"],
|
||||
require: ["util"]
|
||||
}, this);
|
||||
});
|
||||
|
||||
lazyRequire("help", ["help"]);
|
||||
|
||||
default xml namespace = XHTML;
|
||||
|
||||
@@ -282,7 +283,8 @@ var Template = Module("Template", {
|
||||
}
|
||||
},
|
||||
|
||||
_sandbox: Class.Memoize(function () Cu.Sandbox(global, { wantXrays: false })),
|
||||
_sandbox: Class.Memoize(function () Cu.Sandbox(Cu.getGlobalForObject(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