Clear \label even if there is no \tag or equation number. Resolves issue #691.

This commit is contained in:
Davide P. Cervone 2014-03-19 12:32:48 -04:00
parent bb8c8991e1
commit 86388a5965

View File

@ -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 = [];
},