Mark the postTranslate call that does chunk updates as a partial one

This commit is contained in:
Davide P. Cervone 2013-10-07 07:30:57 -04:00
parent 81ed447228
commit 8599abbc4c

View File

@ -319,14 +319,14 @@
// //
state.SVGeqn += (state.i - state.SVGi); state.SVGi = state.i; state.SVGeqn += (state.i - state.SVGi); state.SVGi = state.i;
if (state.SVGeqn >= state.SVGlast + state.SVGchunk) { if (state.SVGeqn >= state.SVGlast + state.SVGchunk) {
this.postTranslate(state); this.postTranslate(state,true);
state.SVGchunk = Math.floor(state.SVGchunk*this.config.EqnChunkFactor); state.SVGchunk = Math.floor(state.SVGchunk*this.config.EqnChunkFactor);
state.SVGdelay = true; // delay if there are more scripts state.SVGdelay = true; // delay if there are more scripts
} }
} }
}, },
postTranslate: function (state) { postTranslate: function (state,partial) {
var scripts = state.jax[this.id]; var scripts = state.jax[this.id];
if (!this.hideProcessedMath) return; if (!this.hideProcessedMath) return;
// //