checkPanels(panels, patternData, iframePassback, switchText) {
    // count how many panels have rendered content
    let panelContentCount = 0;
    for (let i = 0; i < panels.length; ++i) {
      if (panels[i].content !== undefined) {
        panelContentCount++;
      }
    }

    // see if the count of panels with content matches number of panels
    if (panelContentCount === Panels.count()) {
      panelsViewer.renderPanels(
        panels,
        patternData,
        iframePassback,
        switchText
      );
    }
  }
/**
   * Check to see if all of the panels have been collected before rendering
   * @param  {String}      the collected panels
   * @param  {String}      the data from the pattern
   * @param  {Boolean}     if this is going to be passed back to the styleguide
   */
Check to see if all of the panels have been collected before rendering
@param  {String}      the collected panels
@param  {String}      the data from the pattern
@param  {Boolean}     if this is going to be passed back to the styleguide
Check to see if all of the panels have been collected before rendering @param { String } the collected panels @param { String } the data from the pattern @param { Boolean } if this is going to be passed back to the styleguide
checkPanels(panels, patternData, iframePassback, switchText) {
    let panelContentCount = 0;
    for (let i = 0; i < panels.length; ++i) {
      if (panels[i].content !== undefined) {
        panelContentCount++;
      }
    }
    if (panelContentCount === Panels.count()) {
      panelsViewer.renderPanels(
        panels,
        patternData,
        iframePassback,
        switchText
      );
    }
  }
checkPanels ( panels , patternData , iframePassback , switchText ) { let panelContentCount = 0 ; for ( let i = 0 ; i < panels . length ; ++ i ) { if ( panels [ i ] . content !== undefined ) { panelContentCount ++ ; } } if ( panelContentCount === Panels . count ( ) ) { panelsViewer . renderPanels ( panels , patternData , iframePassback , switchText ) ; } }
Check to see if all of the panels have been collected before rendering
 @param  {String}      the collected panels
 @param  {String}      the data from the pattern
 @param  {Boolean}     if this is going to be passed back to the styleguide
Check to see if all of the panels have been collected before rendering @param { String } the collected panels @param { String } the data from the pattern @param { Boolean } if this is going to be passed back to the styleguide
// count how many panels have rendered content // see if the count of panels with content matches number of panels