function handleLensDomEvent(library, hierarchyLoadEvent) {
  // inject lens library files in perspective view.
  handleLibraryFiles(library);

  u.removeSpinner(SPINNER_ID);

  /*
   * Load the lens. Pass userId from cookie through to the lens, in case the
   * lens wants to do any analytics by userId.
   */
  const lensLoadEvent = new CustomEvent('refocus.lens.load', {
    detail: {
      userId: u.getCookie('userId'),
    },
  });
  LENS_DIV.dispatchEvent(lensLoadEvent);

  /*
   * The order of events matters so if we happened to have gotten the
   * hierarchy *before* the lens, then dispatch the lens.hierarchyLoad event
   * now.
   */
  if (hierarchyLoadEvent) {
    LENS_DIV.dispatchEvent(hierarchyLoadEvent);
  }
} // handleLensDomEvent
/**
 * On receiving the lens, load the lens.
 * Load the hierarchy if hierarchy event is passed in.
 *
 * @param {Object} library the perspective's lens's library
 * @param {Object} hierarchyLoadEvent undefined or
 * a Custom Event
 */
On receiving the lens, load the lens.
Load the hierarchy if hierarchy event is passed in.

@param {Object} library the perspective's lens's library
@param {Object} hierarchyLoadEvent undefined or
a Custom Event
On receiving the lens load the lens . Load the hierarchy if hierarchy event is passed in . @param { Object } library the perspective ' s lens ' s library @param { Object } hierarchyLoadEvent undefined or a Custom Event
function handleLensDomEvent(library, hierarchyLoadEvent) {
  handleLibraryFiles(library);
  u.removeSpinner(SPINNER_ID);
  const lensLoadEvent = new CustomEvent('refocus.lens.load', {
    detail: {
      userId: u.getCookie('userId'),
    },
  });
  LENS_DIV.dispatchEvent(lensLoadEvent);
  if (hierarchyLoadEvent) {
    LENS_DIV.dispatchEvent(hierarchyLoadEvent);
  }
} 
function handleLensDomEvent ( library , hierarchyLoadEvent ) { handleLibraryFiles ( library ) ; u . removeSpinner ( SPINNER_ID ) ; const lensLoadEvent = new CustomEvent ( 'refocus.lens.load' , { detail : { userId : u . getCookie ( 'userId' ) , } , } ) ; LENS_DIV . dispatchEvent ( lensLoadEvent ) ; if ( hierarchyLoadEvent ) { LENS_DIV . dispatchEvent ( hierarchyLoadEvent ) ; } }
On receiving the lens, load the lens.
On receiving the lens load the lens .
// inject lens library files in perspective view. /*
   * Load the lens. Pass userId from cookie through to the lens, in case the
   * lens wants to do any analytics by userId.
   */ /*
   * The order of events matters so if we happened to have gotten the
   * hierarchy *before* the lens, then dispatch the lens.hierarchyLoad event
   * now.
   */ // handleLensDomEvent