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:
Davide P. Cervone 2011-05-01 07:13:40 -04:00
parent d4c2c09714
commit 92c0a9f9a5
2 changed files with 6 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -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?