1jQuery( document ).ready( function ( $ ) { 2 $( 'body' ).on( 'edd_cart_item_added edd_cart_item_removed', function ( e, response ) { 3 if ( $( '.wp-block-edd-cart' ).length && response.block_cart.length ) { 4 if ( $( '.edd-blocks__cart-mini' ).length ) { 5 $( '.edd-blocks-cart__mini-quantity' ).empty().append( response.quantity_formatted ); 6 $( '.edd-blocks-cart__mini-total' ).empty().append( response.total ); 7 } 8 if ( $( '.edd-blocks__cart-full' ).length ) { 9 $( '.edd-blocks__cart-full .edd-blocks-form__cart' ).replaceWith( response.block_cart ); 10 } 11 } 12 } ); 13} );
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.