function doWhenAllSectionsReady(callback) {
    assert(typeof callback == 'function');
    if (sectionsToWaitFor > 0)
      readyCallbacks.push(callback);
    else
      window.setTimeout(callback, 0);  // Do soon after, but asynchronously.
  }
/**
   * This is used to simulate a fire-once event (i.e. $(document).ready() in
   * jQuery or Y.on('domready') in YUI. If all sections are ready, the callback
   * is fired right away. If all pages are not ready yet, the function is queued
   * for later execution.
   * @param {Function} callback The work to be done when ready.
   */
This is used to simulate a fire-once event .ready() in
jQuery or Y.on('domready') in YUI. If all sections are ready, the callback
is fired right away. If all pages are not ready yet, the function is queued
for later execution.
@param {Function} callback The work to be done when ready.
This is used to simulate a fire - once event . ready () in jQuery or Y . on ( ' domready ' ) in YUI . If all sections are ready the callback is fired right away . If all pages are not ready yet the function is queued for later execution . @param { Function } callback The work to be done when ready .
function doWhenAllSectionsReady(callback) {
    assert(typeof callback == 'function');
    if (sectionsToWaitFor > 0)
      readyCallbacks.push(callback);
    else
      window.setTimeout(callback, 0);  
  }
function doWhenAllSectionsReady ( callback ) { assert ( typeof callback == 'function' ) ; if ( sectionsToWaitFor > 0 ) readyCallbacks . push ( callback ) ; else window . setTimeout ( callback , 0 ) ; }
This is used to simulate a fire-once event (i.e.
This is used to simulate a fire - once event ( i . e .
// Do soon after, but asynchronously.