packages/ag-grid-docs/src/dist/aui/js/aui.js
/**
   * Honours behaviour for code written using only the legacy class names.
   * To maintain old behaviour (i.e., remove the 'hidden' class and the item will become un-hidden)
   * whilst allowing our code to only depend on the new classes, we need to
   * keep the state of the DOM in sync with legacy classes.
   *
   * Calling this function will add the new namespaced classes to elements with legacy names.
   * @returns {Function} a function to remove the new namespaced classes, only from the elements they were added to.
   */
Honours behaviour for code written using only the legacy class names.
To maintain old behaviour
whilst allowing our code to only depend on the new classes, we need to
keep the state of the DOM in sync with legacy classes.

Calling this function will add the new namespaced classes to elements with legacy names.
@returns {Function} a function to remove the new namespaced classes, only from the elements they were added to.
Honours behaviour for code written using only the legacy class names . To maintain old behaviour whilst allowing our code to only depend on the new classes we need to keep the state of the DOM in sync with legacy classes . Calling this function will add the new namespaced classes to elements with legacy names . @returns { Function } a function to remove the new namespaced classes only from the elements they were added to .
function migrateAndSyncLegacyClassNames(dropdown) {
      var $dropdown = (0, _jquery2.default)(dropdown);
      var $hiddens = $dropdown.find('.hidden').addClass('aui-dropdown2-hidden');
      var $disableds = $dropdown.find('.disabled').addClass('aui-dropdown2-disabled');
      var $interactives = $dropdown.find('.interactive').addClass('aui-dropdown2-interactive');
      return function revertToOriginalMarkup() {
          $hiddens.removeClass('aui-dropdown2-hidden');
          $disableds.removeClass('aui-dropdown2-disabled');
          $interactives.removeClass('aui-dropdown2-interactive');
      };
  }
function migrateAndSyncLegacyClassNames ( dropdown ) { var $dropdown = ( 0 , _jquery2 . default ) ( dropdown ) ; var $hiddens = $dropdown . find ( '.hidden' ) . addClass ( 'aui-dropdown2-hidden' ) ; var $disableds = $dropdown . find ( '.disabled' ) . addClass ( 'aui-dropdown2-disabled' ) ; var $interactives = $dropdown . find ( '.interactive' ) . addClass ( 'aui-dropdown2-interactive' ) ; return function revertToOriginalMarkup ( ) { $hiddens . removeClass ( 'aui-dropdown2-hidden' ) ; $disableds . removeClass ( 'aui-dropdown2-disabled' ) ; $interactives . removeClass ( 'aui-dropdown2-interactive' ) ; } ; }
Honours behaviour for code written using only the legacy class names.
Honours behaviour for code written using only the legacy class names .
// Migrate away from legacy class names