packages/ag-grid-docs/src/dist/aui/js/aui.js
/**
   * Apply a unique ID to the element. Preserves ID if the element already has one.
   *
   * @param {Element} el Selector to find target element.
   * @param {string} prefix Optional. String to prepend to ID instead of default AUI prefix.
   *
   * @returns {undefined}
   */
Apply a unique ID to the element. Preserves ID if the element already has one.
@param {Element} el Selector to find target element.
@param {string} prefix Optional. String to prepend to ID instead of default AUI prefix.

@returns {undefined}
Apply a unique ID to the element . Preserves ID if the element already has one . @param { Element } el Selector to find target element . @param { string } prefix Optional . String to prepend to ID instead of default AUI prefix . @returns { undefined }
function addId(el, prefix) {
      var element = (0, _jquery2.default)(el);
      var addprefix = prefix || false;
      element.each(function () {
          var $el = (0, _jquery2.default)(this);
          if (!$el.attr('id')) {
              $el.attr('id', (0, _uniqueId2.default)(addprefix));
          }
      });
  }
function addId ( el , prefix ) { var element = ( 0 , _jquery2 . default ) ( el ) ; var addprefix = prefix || false ; element . each ( function ( ) { var $el = ( 0 , _jquery2 . default ) ( this ) ; if ( ! $el . attr ( 'id' ) ) { $el . attr ( 'id' , ( 0 , _uniqueId2 . default ) ( addprefix ) ) ; } } ) ; }
Apply a unique ID to the element.
Apply a unique ID to the element .