1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 00:15:46 +01:00

Death to E4X and stuff.

This commit is contained in:
Kris Maglione
2012-12-17 18:56:36 -08:00
parent 0d179d78bc
commit 3f483de547
24 changed files with 112 additions and 517 deletions

View File

@@ -14,7 +14,7 @@ defineModule("prefs", {
});
lazyRequire("messages", ["_"]);
lazyRequire("template", ["template", "template_"]);
lazyRequire("template", ["template"]);
var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]), {
ORIGINAL: "extensions.dactyl.original.",
@@ -169,7 +169,7 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
if (saved == null && curval != defval || saved != null && curval != saved) {
let msg = _("pref.safeSet.warnChanged", name);
if (message)
msg = template_.linkifyHelp(msg + " " + message);
msg = template.linkifyHelp(msg + " " + message);
util.dactyl.warn(msg);
}
},
@@ -404,7 +404,7 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
let option = {
isDefault: !userValue,
default: this.defaults.get(pref, null),
value: ["", "=", template_.highlight(value, true, 100)],
value: ["", "=", template.highlight(value, true, 100)],
name: pref,
pre: "\u00a0\u00a0" // Unicode nonbreaking space.
};
@@ -413,7 +413,7 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
}
};
return template_.options(_("pref.hostPreferences", config.host), prefs.call(this));
return template.options(_("pref.hostPreferences", config.host), prefs.call(this));
},
}, {
}, {