Skip to content

Commit d67a91b

Browse files
committed
Make sure Message.text gets reset if Message.div is not found.
1 parent 74cd139 commit d67a91b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unpacked/MathJax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,7 @@ MathJax.Message = {
16781678
//
16791679
if (this.div && this.div.parentNode == null) {
16801680
this.div = document.getElementById("MathJax_Message");
1681-
if (this.div) {this.text = this.div.firstChild}
1681+
this.text = (this.div ? this.div.firstChild : null);
16821682
}
16831683
if (!this.div) {
16841684
var frame = document.body;

0 commit comments

Comments
 (0)