Avoid accessing data[0] when not defined. Resolves issue #486.
This commit is contained in:
parent
55b5803d0a
commit
681405debc
|
@ -27,7 +27,7 @@
|
|||
|
||||
MathJax.OutputJax.NativeMML = MathJax.OutputJax({
|
||||
id: "NativeMML",
|
||||
version: "2.2",
|
||||
version: "2.2.1",
|
||||
directory: MathJax.OutputJax.directory + "/NativeMML",
|
||||
extensionDir: MathJax.OutputJax.extensionDir + "/NativeMML",
|
||||
|
||||
|
|
|
@ -576,7 +576,7 @@
|
|||
if (this.data[this.sub] == null) {type = "msup"}
|
||||
var tag = this.NativeMMLelement(type);
|
||||
this.NativeMMLattributes(tag);
|
||||
delete this.data[0].inferred;
|
||||
if (this.data[0]) {delete this.data[0].inferred}
|
||||
for (var i = 0, m = this.data.length; i < m; i++)
|
||||
{if (this.data[i]) {this.data[i].toNativeMML(tag)}}
|
||||
parent.appendChild(tag);
|
||||
|
|
Loading…
Reference in New Issue
Block a user