view/shared/assets/js/wb/ads/2.2.7/ads.js
/**
     * generates a unique id for the container element
     * that the ad will be written into.
     * @param {object} element the element to update
     * @returns {string} the element's id
     */
generates a unique id for the container element
that the ad will be written into.
@param {object} element the element to update
@returns {string} the element's id
generates a unique id for the container element that the ad will be written into . @param { object } element the element to update @returns { string } the element ' s id
function generateId(element) {
        slot_count++;
        if (element && element.attr('id')) {
            return element.attr('id');
        }
        var id = 'wbad-' + getRequiredParam('site_domain') + '-' + slot_count;
        id = id.replace(/[^A-Za-z0-9-]+/g, '').toLowerCase();
        element.attr('id', id);
        return id;
    }
function generateId ( element ) { slot_count ++ ; if ( element && element . attr ( 'id' ) ) { return element . attr ( 'id' ) ; } var id = 'wbad-' + getRequiredParam ( 'site_domain' ) + '-' + slot_count ; id = id . replace ( / [^A-Za-z0-9-]+ / g , '' ) . toLowerCase ( ) ; element . attr ( 'id' , id ) ; return id ; }
generates a unique id for the container element
 that the ad will be written into.
generates a unique id for the container element that the ad will be written into .