src/lib/myuw-app-bar/demo1.js
/**
        *   Clean up event listeners if element is removed from the DOM
        */
Clean up event listeners if element is removed from the DOM
Clean up event listeners if element is removed from the DOM
disconnectedCallback() {
            window.removeEventListener('scroll', e => {
                this.shadowRoot.getElementById('myuw-app-bar').classList.remove('shadow');
            });
        }
disconnectedCallback ( ) { window . removeEventListener ( 'scroll' , e => { this . shadowRoot . getElementById ( 'myuw-app-bar' ) . classList . remove ( 'shadow' ) ; } ) ; }
Clean up event listeners if element is removed from the DOM
Clean up event listeners if element is removed from the DOM