www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 681405debccb04f6993738ce2d684e6341484b19
parent 55b5803d0aa06b7a00cc0bb55a1d0a2456aa9c8e
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Wed, 29 May 2013 11:56:41 -0400

Avoid accessing data[0] when not defined.  Resolves issue #486.

Diffstat:
Munpacked/jax/output/NativeMML/config.js | 2+-
Munpacked/jax/output/NativeMML/jax.js | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/unpacked/jax/output/NativeMML/config.js b/unpacked/jax/output/NativeMML/config.js @@ -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", diff --git a/unpacked/jax/output/NativeMML/jax.js b/unpacked/jax/output/NativeMML/jax.js @@ -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);