Add ability to reprocess only the output (can be used by maction to better handle the toggle actiontype)
This commit is contained in:
parent
bb09608b23
commit
ea88cc5a5b
File diff suppressed because one or more lines are too long
|
@ -1416,6 +1416,7 @@ MathJax.Hub = {
|
||||||
this.RestartAfter(result);
|
this.RestartAfter(result);
|
||||||
}
|
}
|
||||||
result.Attach(script,inputJax[type]);
|
result.Attach(script,inputJax[type]);
|
||||||
|
script.MathJax.state = STATE.OUTPUT;
|
||||||
}
|
}
|
||||||
var jax = script.MathJax.elementJax;
|
var jax = script.MathJax.elementJax;
|
||||||
if (!outputJax[jax.mimeType]) {
|
if (!outputJax[jax.mimeType]) {
|
||||||
|
@ -1425,7 +1426,6 @@ MathJax.Hub = {
|
||||||
jax.outputJax = outputJax[jax.mimeType][0];
|
jax.outputJax = outputJax[jax.mimeType][0];
|
||||||
result = jax.outputJax.Process(script);
|
result = jax.outputJax.Process(script);
|
||||||
if (typeof result === 'function') {
|
if (typeof result === 'function') {
|
||||||
script.MathJax.state = STATE.UPDATE;
|
|
||||||
if (result.called) continue; // go back and call Process() again
|
if (result.called) continue; // go back and call Process() again
|
||||||
this.RestartAfter(result);
|
this.RestartAfter(result);
|
||||||
}
|
}
|
||||||
|
@ -1934,7 +1934,8 @@ MathJax.Hub.Startup = {
|
||||||
STATE: {
|
STATE: {
|
||||||
PENDING: 1, // script is identified as math but not yet processed
|
PENDING: 1, // script is identified as math but not yet processed
|
||||||
PROCESSED: 2, // script has been processed
|
PROCESSED: 2, // script has been processed
|
||||||
UPDATE: 3 // elementJax should be updated
|
UPDATE: 3, // elementJax should be updated
|
||||||
|
OUTPUT: 4 // output should be updated (input is OK)
|
||||||
},
|
},
|
||||||
|
|
||||||
GetID: function () {this.ID++; return "MathJax-Element-"+this.ID},
|
GetID: function () {this.ID++; return "MathJax-Element-"+this.ID},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user