From 48d1109f6a49e1f9a969e9efb1024e2a74c19721 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sat, 6 Aug 2011 13:51:21 -0400 Subject: Reconcile the format of 'sanitizeitems' with most other list options. --- common/content/editor.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'common/content') 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 = {}; -- cgit v1.2.3