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:
@@ -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));
|
||||
},
|
||||
}, {
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user