1(function ( $ ) { 2 'use strict'; 3 4 $( window ).on( 5 'elementor/frontend/init', 6 function () { 7 qodefElementor.init(); 8 } 9 ); 10 11 var qodefElementor = { 12 init: function () { 13 var isEditMode = Boolean( elementorFrontend.isEditMode() ); 14 15 if ( isEditMode ) { 16 for ( var key in qodefEssentialCore.shortcodes ) { 17 for ( var keyChild in qodefEssentialCore.shortcodes[key] ) { 18 qodefElementor.reInitShortcode( 19 key, 20 keyChild 21 ); 22 } 23 } 24 } 25 }, 26 reInitShortcode: function ( key, keyChild ) { 27 elementorFrontend.hooks.addAction( 28 'frontend/element_ready/' + key + '.default', 29 function ( e ) { 30 // Check if object doesn't exist and print the module where is the error. 31 if ( typeof qodefEssentialCore.shortcodes[key][keyChild] === 'undefined' ) { 32 console.log( keyChild ); 33 } else if ( typeof qodefEssentialCore.shortcodes[key][keyChild].createSlider === 'function' ) { 34 var $sliders = e.find( '.qodef-swiper-container' ); 35 if ( $sliders.length ) { 36 $sliders.each( 37 function () { 38 qodefEssentialCore.shortcodes[key][keyChild].createSlider( $( this ) ); 39 } 40 ); 41 } 42 } else if ( typeof qodefEssentialCore.shortcodes[key][keyChild].initItem === 'function' && e.find( '.qodef-shortcode' ).length ) { 43 qodefEssentialCore.shortcodes[key][keyChild].initItem( e.find( '.qodef-shortcode' ) ); 44 } else { 45 qodefEssentialCore.shortcodes[key][keyChild].init(); 46 } 47 } 48 ); 49 }, 50 }; 51 52})( 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.