public/script/services/philips_hue_element.js
// Called when the user clicks on the root Philips Hue element.
Called when the user clicks on the root Philips Hue element.
Called when the user clicks on the root Philips Hue element .
onClick(event) {
        if (event.button !== 0)
            return;
        this.dispatchEvent(new CustomEvent('toggle', {
            detail: !this.on,
        }));
    }
onClick ( event ) { if ( event . button !== 0 ) return ; this . dispatchEvent ( new CustomEvent ( 'toggle' , { detail : ! this . on , } ) ) ; }
Called when the user clicks on the root Philips Hue element.
Called when the user clicks on the root Philips Hue element .