Skip to content

Commit 1e67bf9

Browse files
committed
Merge branch 'issue1033' into hotfix-2.5. Issue #1033.
2 parents df200f2 + 6d6720e commit 1e67bf9

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

unpacked/extensions/TeX/AMSmath.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
258258
* Implement AMS generalized fraction
259259
*/
260260
Genfrac: function (name,left,right,thick,style) {
261-
if (left == null) {left = this.GetDelimiterArg(name)} else {left = this.convertDelimiter(left)}
262-
if (right == null) {right = this.GetDelimiterArg(name)} else {right = this.convertDelimiter(right)}
261+
if (left == null) {left = this.GetDelimiterArg(name)}
262+
if (right == null) {right = this.GetDelimiterArg(name)}
263263
if (thick == null) {thick = this.GetArgument(name)}
264264
if (style == null) {style = this.trimSpaces(this.GetArgument(name))}
265265
var num = this.ParseArg(name);
@@ -399,12 +399,9 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
399399
*/
400400
GetDelimiterArg: function (name) {
401401
var c = this.trimSpaces(this.GetArgument(name));
402-
if (c == "") {return null}
403-
if (TEXDEF.delimiter[c] == null) {
404-
TEX.Error(["MissingOrUnrecognizedDelim",
405-
"Missing or unrecognized delimiter for %1",name]);
406-
}
407-
return this.convertDelimiter(c);
402+
if (c == "") return null;
403+
if (TEXDEF.delimiter[c]) return c;
404+
TEX.Error(["MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",name]);
408405
},
409406

410407
/*

0 commit comments

Comments
 (0)