packages/ag-grid-docs/src/dist/aui/js/aui.js
/**
      * Removes all non-modal layers above & including the given element. If the given element is not an active layer, this method
      * is a no-op. The given element will be removed regardless of whether or not it is modal.
      *
      * @param {HTMLElement | String | jQuery} element layer to pop.
      *
      * @returns {jQuery} The last layer that was popped, or null if no layer matching the given $el was found.
      */
Removes all non-modal layers above & including the given element. If the given element is not an active layer, this method
is a no-op. The given element will be removed regardless of whether or not it is modal.

@param {HTMLElement | String | jQuery} element layer to pop.

@returns {jQuery} The last layer that was popped, or null if no layer matching the given $el was found.
Removes all non - modal layers above & including the given element . If the given element is not an active layer this method is a no - op . The given element will be removed regardless of whether or not it is modal . @param { HTMLElement | String | jQuery } element layer to pop . @returns { jQuery } The last layer that was popped or null if no layer matching the given $el was found .
function popUntil(element) {
          var $el = element instanceof _jquery2.default ? element : (0, _jquery2.default)(element);
          var index = layerIndex(this._stack, $el);
          if (index === -1) {
              return null;
          }
          var oldTopBlanketedIndex = topBlanketedIndex(this._stack);
          popLayers(this._stack, index + 1, createLayer($el).isBlanketed());
          createLayer($el)._hideLayer();
          this._stack.splice(index, 1);
          updateBlanket(this._stack, oldTopBlanketedIndex);
          return $el;
      }
function popUntil ( element ) { var $el = element instanceof _jquery2 . default ? element : ( 0 , _jquery2 . default ) ( element ) ; var index = layerIndex ( this . _stack , $el ) ; if ( index === - 1 ) { return null ; } var oldTopBlanketedIndex = topBlanketedIndex ( this . _stack ) ; popLayers ( this . _stack , index + 1 , createLayer ( $el ) . isBlanketed ( ) ) ; createLayer ( $el ) . _hideLayer ( ) ; this . _stack . splice ( index , 1 ) ; updateBlanket ( this . _stack , oldTopBlanketedIndex ) ; return $el ; }
Removes all non-modal layers above & including the given element.
Removes all non - modal layers above & including the given element .
// Removes all layers above the current one. // Removes the current layer.