mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
15 lines
321 B
JavaScript
15 lines
321 B
JavaScript
import BaseAction from './BaseAction';
|
|
|
|
class AttributeAction extends BaseAction {
|
|
run( status ) {
|
|
if ( status ) {
|
|
jQuery( this.config.selector ).addClass( this.config.html_class );
|
|
} else {
|
|
jQuery( this.config.selector ).removeClass(
|
|
this.config.html_class
|
|
);
|
|
}
|
|
}
|
|
}
|
|
|
|
export default AttributeAction;
|