function updateObserver() {
  if (!session.observer) {
    return;  // Do nothing until setupObserver has been run.
  }
  session.observer.disconnect();
  $('.section:visible').not('.workup_input').each(function() {
    session.observer.observe(this);
  });
  // Index the selector controls.
  session.navSelectors = {};
  $('.navSection').each((index, selector) => {
    selector = $(selector);
    const section = selector.attr('data-section');
    session.navSelectors[section] = selector;
  });
  $('.inputNavSection').each((index, selector) => {
    selector = $(selector);
    const section = selector.attr('input_name');
    session.navSelectors[section] = selector;
  });
}
/**
 * Updates the set of elements watched by the IntersectionObserver.
 */
Updates the set of elements watched by the IntersectionObserver.
Updates the set of elements watched by the IntersectionObserver .
function updateObserver() {
  if (!session.observer) {
    return;  
  }
  session.observer.disconnect();
  $('.section:visible').not('.workup_input').each(function() {
    session.observer.observe(this);
  });
  session.navSelectors = {};
  $('.navSection').each((index, selector) => {
    selector = $(selector);
    const section = selector.attr('data-section');
    session.navSelectors[section] = selector;
  });
  $('.inputNavSection').each((index, selector) => {
    selector = $(selector);
    const section = selector.attr('input_name');
    session.navSelectors[section] = selector;
  });
}
function updateObserver ( ) { if ( ! session . observer ) { return ; } session . observer . disconnect ( ) ; $ ( '.section:visible' ) . not ( '.workup_input' ) . each ( function ( ) { session . observer . observe ( this ) ; } ) ; session . navSelectors = { } ; $ ( '.navSection' ) . each ( ( index , selector ) => { selector = $ ( selector ) ; const section = selector . attr ( 'data-section' ) ; session . navSelectors [ section ] = selector ; } ) ; $ ( '.inputNavSection' ) . each ( ( index , selector ) => { selector = $ ( selector ) ; const section = selector . attr ( 'input_name' ) ; session . navSelectors [ section ] = selector ; } ) ; }
Updates the set of elements watched by the IntersectionObserver.
Updates the set of elements watched by the IntersectionObserver .
// Do nothing until setupObserver has been run. // Index the selector controls.