summaryrefslogtreecommitdiff
path: root/common/content/editor.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-08-06 13:51:21 -0400
committerKris Maglione <maglione.k@gmail.com>2011-08-06 13:51:21 -0400
commit48d1109f6a49e1f9a969e9efb1024e2a74c19721 (patch)
treed88c9e68035678e48bf4acebc6642ec26368e240 /common/content/editor.js
parentb9f4221643da89f1c8b11df723e40d104e0cb515 (diff)
downloadpentadactyl-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.js9
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 = {};