www

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

commit beb8efaa049b13b3636f88cb5b70861e320510fb
parent 78fce5d3dc57950ef545d2686177424cf10dbabe
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Sat,  6 Feb 2016 17:44:25 -0500

Use correct event handler for keypress, and delete previous error if we are reprocessing the scripts.

Diffstat:
Munpacked/MathJax.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js @@ -2129,6 +2129,7 @@ MathJax.Hub = { if (script.MathJax.state !== STATE.PENDING) {this.scriptAction[action](script)} } if (!script.MathJax) {script.MathJax = {state: STATE.PENDING}} + if (script.MathJax.error) delete script.MathJax.error; if (script.MathJax.state !== STATE.PROCESSED) {state.scripts.push(script)} } } @@ -2371,7 +2372,7 @@ MathJax.Hub = { HUB = MathJax.Hub; error.oncontextmenu = EVENT.Menu; error.onmousedown = EVENT.Mousedown; - error.keydown = EVENT.Keydown; + error.onkeydown = EVENT.Keydown; error.tabIndex = HUB.getTabOrder(HUB.getJaxFor(script)); }); //