commit 1e67bf954f47238393da4cb5a245000e67beef1f
parent df200f22f38c6f480a64f1b99218d47d05da8a50
Author: Davide P. Cervone <dpvc@union.edu>
Date: Thu, 5 Feb 2015 18:31:15 -0500
Merge branch 'issue1033' into hotfix-2.5. Issue #1033.
Diffstat:
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/unpacked/extensions/TeX/AMSmath.js b/unpacked/extensions/TeX/AMSmath.js
@@ -258,8 +258,8 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
* Implement AMS generalized fraction
*/
Genfrac: function (name,left,right,thick,style) {
- if (left == null) {left = this.GetDelimiterArg(name)} else {left = this.convertDelimiter(left)}
- if (right == null) {right = this.GetDelimiterArg(name)} else {right = this.convertDelimiter(right)}
+ if (left == null) {left = this.GetDelimiterArg(name)}
+ if (right == null) {right = this.GetDelimiterArg(name)}
if (thick == null) {thick = this.GetArgument(name)}
if (style == null) {style = this.trimSpaces(this.GetArgument(name))}
var num = this.ParseArg(name);
@@ -399,12 +399,9 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
*/
GetDelimiterArg: function (name) {
var c = this.trimSpaces(this.GetArgument(name));
- if (c == "") {return null}
- if (TEXDEF.delimiter[c] == null) {
- TEX.Error(["MissingOrUnrecognizedDelim",
- "Missing or unrecognized delimiter for %1",name]);
- }
- return this.convertDelimiter(c);
+ if (c == "") return null;
+ if (TEXDEF.delimiter[c]) return c;
+ TEX.Error(["MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",name]);
},
/*