зеркало из https://github.com/mozilla/gecko-dev.git
Bug 350384 invalid 'in' operand window.opener.InlineSpellChecker closing spellcheck in Composer
p=me r=neil sr=bienvenu
This commit is contained in:
Родитель
7a43ba0d19
Коммит
3e7b6d2632
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче