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