servlet/core/js/stags.js
/*
var sc_runLaterMethods = [];

function sc_runRunLaterMethods() {
   while (sc_runLaterMethods.length > 0) {
      var toRunLater = sc_runLaterMethods.slice(0);
      sc_runLaterMethods = [];
      for (var i = 0; i < toRunLater.length; i++) {
         var rlm = toRunLater[i];
         try {
            rlm.method.call(rlm.thisObj);
         }
         catch (e) {
            sc_logError("Exception: " + e + " in run later method: " + rlm + " stack:" + e.stack);
         }
      }
   }
   sc_runLaterScheduled = false;
}

// Set this to true when you need to pause runLaters - e.g. wait till you are about to do the next UI refresh.
var sc_runLaterScheduled = false;

*/


Set this to true when you need to pause runLaters - e.g. wait till you are about to do the next UI refresh.
var sc_runLaterScheduled = false.
Set this to true when you need to pause runLaters - e . g . wait till you are about to do the next UI refresh . var sc_runLaterScheduled = false .
function sc_methodCallback(thisObj, method) {
    return function() {
      var _this = thisObj;
      method.call(_this);
   };
}
function sc_methodCallback ( thisObj , method ) { return function ( ) { var _this = thisObj ; method . call ( _this ) ; } ; }
var sc_runLaterMethods = [];
function sc_runRunLaterMethods() {
while (sc_runLaterMethods.length > 0) {
var toRunLater = sc_runLaterMethods.slice(0);
sc_runLaterMethods = [];
for (var i = 0; i < toRunLater.length; i++) {
var rlm = toRunLater[i];
try {
rlm.method.call(rlm.thisObj);
}
catch (e) {
sc_logError("Exception: " + e + " in run later method: " + rlm + " stack:" + e.stack);
}
}
}
sc_runLaterScheduled = false;
}
var sc_runLaterMethods = [] ; function sc_runRunLaterMethods () { while ( sc_runLaterMethods . length > 0 ) { var toRunLater = sc_runLaterMethods . slice ( 0 ) ; sc_runLaterMethods = [] ; for ( var i = 0 ; i < toRunLater . length ; i ++ ) { var rlm = toRunLater [ i ] ; try { rlm . method . call ( rlm . thisObj ) ; } catch ( e ) { sc_logError ( " Exception : " + e + " in run later method : " + rlm + " stack : " + e . stack ) ; } } } sc_runLaterScheduled = false ; }