diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-08-06 13:51:21 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-08-06 13:51:21 -0400 |
commit | 48d1109f6a49e1f9a969e9efb1024e2a74c19721 (patch) | |
tree | d88c9e68035678e48bf4acebc6642ec26368e240 /common/content/editor.js | |
parent | b9f4221643da89f1c8b11df723e40d104e0cb515 (diff) | |
download | pentadactyl-48d1109f6a49e1f9a969e9efb1024e2a74c19721.tar.gz |
Reconcile the format of 'sanitizeitems' with most other list options.
Diffstat (limited to 'common/content/editor.js')
-rw-r--r-- | common/content/editor.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/common/content/editor.js b/common/content/editor.js index 007679db..c8758f61 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -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 = {}; |