commit 982d9f92f74f0e32a3a7766fed32b007444c7532
parent 6c4996b436704c8523e13d3114363a72e58007a3
Author: Davide P. Cervone <dpvc@union.edu>
Date: Thu, 20 Mar 2014 05:49:37 -0400
Merge remote-tracking branch 'dpvc/issue691' into develop. Issue #691.
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/unpacked/extensions/TeX/AMSmath.js b/unpacked/extensions/TeX/AMSmath.js
@@ -448,9 +448,13 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
tag.id = ID; if (global.label) {AMS.eqlabels[global.label].id = ID}
}
AMS.eqIDs[tag.id] = 1;
- delete global.tag; delete global.tagID; delete global.label;
+ this.clearTag();
return tag;
},
+ clearTag: function () {
+ var global = this.global;
+ delete global.tag; delete global.tagID; delete global.label;
+ },
/*
* Set the initial <mo> to have form="infix" and lspace="0",
@@ -541,7 +545,7 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
if (this.global.tag && !this.global.notags) {
this.row = [this.getTag()].concat(this.row);
mtr = MML.mlabeledtr;
- }
+ } else {this.clearTag()}
if (this.numbered) {delete this.global.notag}
this.table.push(mtr.apply(MML,this.row)); this.row = [];
},