class VideoModule extends elementorModules.frontend.handlers.Base { // ... other code is here onElementChange( propertyName ) { if ( 0 === propertyName.indexOf( 'lightbox_content_animation' ) ) { this.animateVideo(); return; } const isLightBoxEnabled = this.getElementSettings( 'lightbox' ); if ( 'lightbox' === propertyName && ! isLightBoxEnabled ) { this.getLightBox().getModal().hide(); return; } if ( 'aspect_ratio' === propertyName && isLightBoxEnabled ) { this.handleAspectRatio(); } } }