packages/ag-grid-docs/src/dist/aui/js/aui.js
/**
      * Pops all layers above and including the top persistent layer. If layers exist but none are persistent, this method
      * does nothing.
      */
Pops all layers above and including the top persistent layer. If layers exist but none are persistent, this method
does nothing.
Pops all layers above and including the top persistent layer . If layers exist but none are persistent this method does nothing .
function popUntilTopPersistent() {
          var $toPop = LayerManager.global.getTopLayer();
          if (!$toPop) {
              return;
          }
          var stopIndex;
          var oldTopBlanketedIndex = topBlanketedIndex(this._stack);
          var toPop = createLayer($toPop);
          if (toPop.isPersistent()) {
              if (toPop.isBlanketed()) {
                  return;
              } else {
                  $toPop = LayerManager.global.getNextLowerNonPersistentOrBlanketedLayer($toPop);
                  toPop = createLayer($toPop);
                  if ($toPop && !toPop.isPersistent()) {
                      stopIndex = layerIndex(this._stack, $toPop);
                      popLayers(this._stack, stopIndex, true);
                      updateBlanket(this._stack, oldTopBlanketedIndex);
                  } else {
                      return;
                  }
              }
          } else {
              stopIndex = layerIndex(this._stack, $toPop);
              popLayers(this._stack, stopIndex, true);
              updateBlanket(this._stack, oldTopBlanketedIndex);
          }
      }
function popUntilTopPersistent ( ) { var $toPop = LayerManager . global . getTopLayer ( ) ; if ( ! $toPop ) { return ; } var stopIndex ; var oldTopBlanketedIndex = topBlanketedIndex ( this . _stack ) ; var toPop = createLayer ( $toPop ) ; if ( toPop . isPersistent ( ) ) { if ( toPop . isBlanketed ( ) ) { return ; } else { $toPop = LayerManager . global . getNextLowerNonPersistentOrBlanketedLayer ( $toPop ) ; toPop = createLayer ( $toPop ) ; if ( $toPop && ! toPop . isPersistent ( ) ) { stopIndex = layerIndex ( this . _stack , $toPop ) ; popLayers ( this . _stack , stopIndex , true ) ; updateBlanket ( this . _stack , oldTopBlanketedIndex ) ; } else { return ; } } } else { stopIndex = layerIndex ( this . _stack , $toPop ) ; popLayers ( this . _stack , stopIndex , true ) ; updateBlanket ( this . _stack , oldTopBlanketedIndex ) ; } }
Pops all layers above and including the top persistent layer.
Pops all layers above and including the top persistent layer .
// Get the closest non modal layer below, stop at the first blanketed layer though, we don't want to pop below that // Here we have a blanketed persistent layer