Merge branch 'issue969' into develop. Issue #969.

This commit is contained in:
Davide P. Cervone 2014-12-07 07:08:11 -05:00
commit b937bee874
2 changed files with 3 additions and 5 deletions

View File

@ -561,8 +561,8 @@ MathJax.ElementJax.mml.Augment({
if (!def) {def = this.CheckRange(mo)}
if (!def && nodefault) {def = {}} else {
if (!def) {def = MathJax.Hub.Insert({},this.defaultDef)}
if (this.parent) {this.def = def} else {def = MathJax.Hub.Insert({},def)}
def.form = forms[0];
this.def = def;
}
}
this.useMMLspacing &= ~(this.SPACE_ATTR[name] || 0);
@ -802,7 +802,7 @@ MathJax.ElementJax.mml.Augment({
this.getPrevClass(prev); prev = null;
for (i = 0; i < m; i++)
{if (this.data[i]) {prev = this.data[i].setTeXclass(prev)}}
this.texClass = MML.TEXCLASS.INNER;
if (!this.hasOwnProperty("texClass")) this.texClass = MML.TEXCLASS.INNER;
return this;
} else {
//
@ -824,7 +824,6 @@ MathJax.ElementJax.mml.Augment({
MML.mfrac = MML.mbase.Subclass({
type: "mfrac", num: 0, den: 1,
linebreakContainer: true,
texClass: MML.TEXCLASS.INNER,
isEmbellished: MML.mbase.childEmbellished,
Core: MML.mbase.childCore,
CoreMO: MML.mbase.childCoreMO,

View File

@ -185,7 +185,6 @@
var mml = MML.mfrac(this.num,this.mmlData(false));
if (this.thickness != null) {mml.linethickness = this.thickness}
if (this.open || this.close) {
mml.texClass = MML.TEXCLASS.INNER;
mml.texWithDelims = true;
mml = TEX.fixedFence(this.open,mml,this.close);
}
@ -2194,7 +2193,7 @@
* Create an mrow that has \mathchoice using \bigg and \big for the delimiters
*/
fixedFence: function (open,mml,close) {
var mrow = MML.mrow().With({open:open, close:close, texClass:MML.TEXCLASS.INNER});
var mrow = MML.mrow().With({open:open, close:close, texClass:MML.TEXCLASS.ORD});
if (open) {mrow.Append(this.mathPalette(open,"l"))}
if (mml.type === "mrow") {mrow.Append.apply(mrow,mml.data)} else {mrow.Append(mml)}
if (close) {mrow.Append(this.mathPalette(close,"r"))}