lib/main.js
function ReturnResult(result) {
  if (errors.length) {
    result.errors = errors;
  }
  var state = data.state;
  if (state) {
    var AMS = MathJax.Extension["TeX/AMSmath"];
    var GLYPH = (MathJax.OutputJax.SVG||{}).BBOX.GLYPH;
    state.AMS.startNumber = AMS.startNumber;
    state.AMS.labels = AMS.labels;
    state.AMS.IDs = AMS.IDs;
    state.mmlID = MathJax.ElementJax.mml.SUPER.ID;
    state.glyphs = GLYPH.glyphs;
    state.defs = GLYPH.defs;
    state.n = GLYPH.n;
    state.ID = ID;
  }
  serverState = STATE.READY;
  callback(result, originalData);
  if (serverState === STATE.READY) StartQueue();
}
function ReturnResult(result) {
  if (errors.length) {
    result.errors = errors;
  }
  var state = data.state;
  if (state) {
    var AMS = MathJax.Extension["TeX/AMSmath"];
    var GLYPH = (MathJax.OutputJax.SVG||{}).BBOX.GLYPH;
    state.AMS.startNumber = AMS.startNumber;
    state.AMS.labels = AMS.labels;
    state.AMS.IDs = AMS.IDs;
    state.mmlID = MathJax.ElementJax.mml.SUPER.ID;
    state.glyphs = GLYPH.glyphs;
    state.defs = GLYPH.defs;
    state.n = GLYPH.n;
    state.ID = ID;
  }
  serverState = STATE.READY;
  callback(result, originalData);
  if (serverState === STATE.READY) StartQueue();
}
function ReturnResult ( result ) { if ( errors . length ) { result . errors = errors ; } var state = data . state ; if ( state ) { var AMS = MathJax . Extension [ "TeX/AMSmath" ] ; var GLYPH = ( MathJax . OutputJax . SVG || { } ) . BBOX . GLYPH ; state . AMS . startNumber = AMS . startNumber ; state . AMS . labels = AMS . labels ; state . AMS . IDs = AMS . IDs ; state . mmlID = MathJax . ElementJax . mml . SUPER . ID ; state . glyphs = GLYPH . glyphs ; state . defs = GLYPH . defs ; state . n = GLYPH . n ; state . ID = ID ; } serverState = STATE . READY ; callback ( result , originalData ) ; if ( serverState === STATE . READY ) StartQueue ( ) ; }
Return the result object, and do the next queued expression
Return the result object and do the next queued expression