view/shared/assets/js/wb/ads/2.2.7/ads.js
/**
     * auto-discover all potential slots via the selector, and call defineNewAdSlot on each candidate
     * NOTE: this is not called by init, must be kicked off explicitly by calling page
     *
     * @return {*}
     */
auto-discover all potential slots via the selector, and call defineNewAdSlot on each candidate
NOTE: this is not called by init, must be kicked off explicitly by calling page


auto - discover all potential slots via the selector and call defineNewAdSlot on each candidate NOTE : this is not called by init must be kicked off explicitly by calling page
function buildSlots() {
        trigger('pre.slot.discovery');
        if (!settings.enabled) {
            debug('buildSlots :: ads disabled. no ad slots will be created or displayed');
            return _this;
        }
        var cnt =  0;
        $('.' + settings.selector).each(function() {
            var adDiv = $(this);
            var id = adDiv.attr('id');
            if (id && getSlotById(id)) {
                return;
            }
            cnt++;
            defineNewAdSlot(adDiv, null, null, false, false);
        });
        debug('buildSlots :: found and created ' + cnt + ' ads');
        trigger('post.slot.discovery');
        return _this;
    }
function buildSlots ( ) { trigger ( 'pre.slot.discovery' ) ; if ( ! settings . enabled ) { debug ( 'buildSlots :: ads disabled. no ad slots will be created or displayed' ) ; return _this ; } var cnt = 0 ; $ ( '.' + settings . selector ) . each ( function ( ) { var adDiv = $ ( this ) ; var id = adDiv . attr ( 'id' ) ; if ( id && getSlotById ( id ) ) { return ; } cnt ++ ; defineNewAdSlot ( adDiv , null , null , false , false ) ; } ) ; debug ( 'buildSlots :: found and created ' + cnt + ' ads' ) ; trigger ( 'post.slot.discovery' ) ; return _this ; }
auto-discover all potential slots via the selector, and call defineNewAdSlot on each candidate
 NOTE: this is not called by init, must be kicked off explicitly by calling page
auto - discover all potential slots via the selector and call defineNewAdSlot on each candidate NOTE : this is not called by init must be kicked off explicitly by calling page