mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
18 lines
348 B
JavaScript
18 lines
348 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;
|