1(function ( $ ) { 2 'use strict'; 3 $( window ).on( 4 'elementor/frontend/init', 5 function () { 6 qodefAddonsPremiumElementor.init(); 7 } 8 ); 9 10 var qodefAddonsPremiumElementor = { 11 init: function () { 12 var isEditMode = Boolean( elementorFrontend.isEditMode() ); 13 14 if ( isEditMode ) { 15 for ( var key in qodefAddonsPremiumCore.shortcodes ) { 16 for ( var keyChild in qodefAddonsPremiumCore.shortcodes[key] ) { 17 qodefAddonsPremiumElementor.reInitShortcode( 18 key, 19 keyChild 20 ); 21 } 22 } 23 } 24 }, 25 reInitShortcode: function ( key, keyChild ) { 26 elementorFrontend.hooks.addAction( 27 'frontend/element_ready/' + key + '.default', 28 function ( e ) { 29 // Check if object doesn't exist and print the module where is the error. 30 if ( typeof qodefAddonsPremiumCore.shortcodes[key][keyChild] === 'undefined' ) { 31 console.log( keyChild ); 32 } else if ( typeof qodefAddonsPremiumCore.shortcodes[key][keyChild].initSlider === 'function' ) { 33 var $sliders = e.find( '.qodef-qi-swiper-container' ); 34 if ( $sliders.length ) { 35 $sliders.each( 36 function () { 37 qodefAddonsPremiumCore.shortcodes[key][keyChild].initSlider( $( this ) ); 38 } 39 ); 40 } 41 } else if ( typeof qodefAddonsPremiumCore.shortcodes[key][keyChild].initItem === 'function' && e.find( '.qodef-shortcode' ).length ) { 42 qodefAddonsPremiumCore.shortcodes[key][keyChild].initItem( e.find( '.qodef-shortcode' ) ); 43 } else { 44 qodefAddonsPremiumCore.shortcodes[key][keyChild].init(); 45 } 46 } 47 ); 48 }, 49 }; 50 51})( jQuery );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.