semantic.popup = {}; // ready event semantic.popup.ready = function() { // selector cache var $popup = $('.main .ui[data-content], .main .ui[data-html], .main i[title], .main i[data-content], .main i[data-html]'), // alias handler ; $popup .popup({ preserve: true, className: { popup: 'ignored ui popup' } }) ; }; // attach ready event $(document) .ready(semantic.popup.ready) ;