www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 705f738228688aac857f334811220aca6dcc617a
parent 627ab61df86e7a17afe0e70fb2326881e2560198
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Fri, 20 Feb 2015 09:26:26 -0500

Merge branch 'issue1053' into hotfix-2.5.  Issue #1053.

Diffstat:
Munpacked/extensions/TeX/mathchoice.js | 13+++++--------
1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/unpacked/extensions/TeX/mathchoice.js b/unpacked/extensions/TeX/mathchoice.js @@ -45,14 +45,11 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { MML.TeXmathchoice = MML.mbase.Subclass({ type: "TeXmathchoice", notParent: true, - choice: function () { - if (this.selection == null) { - this.selection = 0; - var values = this.getValues("displaystyle","scriptlevel"); - if (values.scriptlevel > 0) {this.selection = Math.min(3,values.scriptlevel+1)} - else {this.selection = (values.displaystyle ? 0 : 1)} - } - return this.selection; + choice: function (nocache) { + var selection = 0, values = this.getValues("displaystyle","scriptlevel"); + if (values.scriptlevel > 0) {selection = Math.min(3,values.scriptlevel+1)} + else {selection = (values.displaystyle ? 0 : 1)} + return selection; }, selected: function () {return this.data[this.choice()]}, setTeXclass: function (prev) {return this.selected().setTeXclass(prev)},