@@ -92,6 +92,7 @@ var document, window, content, html; // the DOM elements
9292var queue = [ ] ; // queue of typesetting requests of the form [data,callback]
9393var data , callback , originalData ; // the current queue item
9494var errors = [ ] ; // errors collected durring the typesetting
95+ var sErrors = [ ] ; // errors collected durring MathJax startup
9596var ID = 0 ; // id for this SVG element
9697
9798//
@@ -523,7 +524,10 @@ function ConfigureMathJax() {
523524 setTimeout ( RestartMathJax , 100 ) ;
524525 } else {
525526 serverState = STATE . READY ;
526- MathJax . Hub . Queue ( StartQueue ) ;
527+ MathJax . Hub . Queue (
528+ function ( ) { sErrors = errors } ,
529+ StartQueue
530+ ) ;
527531 }
528532 } ) ;
529533 }
@@ -533,7 +537,7 @@ function ConfigureMathJax() {
533537 //
534538 // Parse added extensions list and add to standard ones
535539 //
536- var extensionList = extensions . split ( / s * , \s * / ) ;
540+ var extensionList = extensions . split ( / \ s* , \s * / ) ;
537541 for ( var i = 0 ; i < extensionList . length ; i ++ ) {
538542 var matches = extensionList [ i ] . match ( / ^ ( .* ?) ( \. j s ) ? $ / ) ;
539543 window . MathJax . extensions . push ( matches [ 1 ] + '.js' ) ;
@@ -735,7 +739,7 @@ function GetSVG(result) {
735739//
736740function StartQueue ( ) {
737741 data = callback = originalData = null ; // clear existing equation, if any
738- errors = [ ] ; // clear any errors
742+ errors = sErrors ; sErrors = [ ] ; // clear any errors
739743 if ( ! queue . length ) return ; // return if nothing to do
740744
741745 serverState = STATE . BUSY ;
0 commit comments