Bug 350384 invalid 'in' operand window.opener.InlineSpellChecker closing spellcheck in Composer

p=me r=neil sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@208675 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bugzilla%arlen.demon.co.uk
2006-08-28 23:46:53 +00:00
parent 4311665b24
commit fe8d247c48
2 changed files with 6 additions and 2 deletions

View File

@@ -575,7 +575,9 @@ function ExitSpellChecker()
spellChecker.dictionary = curLang;
}
// now check the document over again with the new dictionary
if ("inlineSpellChecker" in window.opener.InlineSpellChecker)
// if we have an inline spellchecker
if (("InlineSpellChecker" in window.opener) &&
("inlineSpellChecker" in window.opener.InlineSpellChecker))
if (window.opener.InlineSpellChecker.inlineSpellChecker.enableRealTimeSpell)
window.opener.InlineSpellChecker.checkDocument(window.opener.content.document);
}