1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-21 08:05:45 +01:00

After some profiling, give all modules a common prototype.

This commit is contained in:
Kris Maglione
2011-08-22 01:45:41 -04:00
parent fbb6af43ed
commit 60c858b59b
21 changed files with 33 additions and 55 deletions

View File

@@ -11,8 +11,7 @@ try {
Components.utils.import("resource://dactyl/bootstrap.jsm");
defineModule("prefs", {
exports: ["Prefs", "localPrefs", "prefs"],
require: ["services", "util"],
use: ["config", "messages", "template"]
require: ["services", "util"]
}, this);
var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]), {