1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 19:37:59 +01:00

Reconcile the format of 'sanitizeitems' with most other list options.

This commit is contained in:
Kris Maglione
2011-08-06 13:51:21 -04:00
parent b9f4221643
commit 48d1109f6a
5 changed files with 42 additions and 15 deletions

View File

@@ -861,7 +861,14 @@ var Editor = Module("editor", {
"string", config.locale,
{
initValue: function () {},
getter: function getter() services.spell.dictionary || "",
getter: function getter() {
try {
return services.spell.dictionary || "";
}
catch (e) {
return "";
}
},
setter: function setter(val) { services.spell.dictionary = val; },
completer: function completer(context) {
let res = {};