Rename AsciiMath config option "decimal" to "decimalsign".

This commit is contained in:
Frédéric Wang 2013-01-31 16:35:09 +01:00
parent b58c14b557
commit 07c5ee1121
2 changed files with 4 additions and 2 deletions

View File

@ -33,7 +33,7 @@ MathJax.InputJax.AsciiMath = MathJax.InputJax({
config: {
displaystyle: true, // put limits above and below operators
decimal: "." // can change to "," but watch out for "(1,2)"
decimalsign: "." // can change to "," but watch out for "(1,2)"
}
});
MathJax.InputJax.AsciiMath.Register("math/asciimath");

View File

@ -1193,7 +1193,9 @@ ASCIIMATH.Augment({
AM: {
Init: function () {
displaystyle = ASCIIMATH.config.displaystyle;
decimalsign = ASCIIMATH.config.decimal;
// Old versions use the "decimal" option, so take it into account if it
// is defined by the user. See issue 384.
decimalsign = (ASCIIMATH.config.decimal || ASCIIMATH.config.decimalsign);
INITASCIIMATH();
AMinitSymbols();
},