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

p=me r=neil sr=bienvenu
This commit is contained in:
bugzilla%arlen.demon.co.uk 2006-08-28 23:46:53 +00:00
Родитель 7a43ba0d19
Коммит 3e7b6d2632
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -573,7 +573,9 @@ function ExitSpellChecker()
spellChecker.dictionary = curLang; spellChecker.dictionary = curLang;
} }
// now check the document over again with the new dictionary // 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) if (window.opener.InlineSpellChecker.inlineSpellChecker.enableRealTimeSpell)
window.opener.InlineSpellChecker.checkDocument(window.opener.content.document); window.opener.InlineSpellChecker.checkDocument(window.opener.content.document);
} }

Просмотреть файл

@ -575,7 +575,9 @@ function ExitSpellChecker()
spellChecker.dictionary = curLang; spellChecker.dictionary = curLang;
} }
// now check the document over again with the new dictionary // 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) if (window.opener.InlineSpellChecker.inlineSpellChecker.enableRealTimeSpell)
window.opener.InlineSpellChecker.checkDocument(window.opener.content.document); window.opener.InlineSpellChecker.checkDocument(window.opener.content.document);
} }