Add an Update() method to ElementJax to force output to be updated (but not reprocess input). To be used if the contents of the element jas changes by hand (e.g. through maction)
This commit is contained in:
parent
d4c2c09714
commit
92c0a9f9a5
File diff suppressed because one or more lines are too long
|
@ -1891,6 +1891,11 @@ MathJax.Hub.Startup = {
|
|||
script.MathJax.state = this.STATE.UPDATE;
|
||||
return HUB.Reprocess(script,callback);
|
||||
},
|
||||
Update: function (callback) {
|
||||
var script = this.SourceElement();
|
||||
script.MathJax.state = this.STATE.OUTPUT;
|
||||
return HUB.Process(script,callback);
|
||||
},
|
||||
Remove: function () {
|
||||
this.outputJax.Remove(this);
|
||||
HUB.signal.Post(["Remove Math",this.inputID]); // wait for this to finish?
|
||||
|
|
Loading…
Reference in New Issue
Block a user