mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-15 21:05:48 +01:00
After some profiling, give all modules a common prototype.
This commit is contained in:
@@ -8,11 +8,11 @@
|
||||
|
||||
try {
|
||||
|
||||
let global=this;
|
||||
Components.utils.import("resource://dactyl/bootstrap.jsm");
|
||||
defineModule("util", {
|
||||
exports: ["DOM", "$", "FailedAssertion", "Math", "NS", "Point", "Util", "XBL", "XHTML", "XUL", "util"],
|
||||
require: ["dom", "services"],
|
||||
use: ["commands", "config", "highlight", "messages", "overlay", "storage", "template"]
|
||||
require: ["dom", "services"]
|
||||
}, this);
|
||||
|
||||
var FailedAssertion = Class("FailedAssertion", ErrorBase, {
|
||||
|
||||
Reference in New Issue
Block a user