1class CartLink extends HTMLElement { 2 constructor() { 3 super(); 4 5 this.itemsCount = this.querySelector('items-count'); 6 } 7 8 connectedCallback() { 9 this.unsubscribe = window.theme.cart.store.subscribe((state) => { 10 this.itemsCount.innerHTML = state.products.item_count; 11 }); 12 } 13 14 disconnectedCallback() { 15 this.unsubscribe(); 16 } 17} 18customElements.define('cart-link', CartLink);
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.