🚧 Remove duplicate getters

This commit is contained in:
Philipp Stracker 2024-10-09 14:04:43 +02:00
parent e95321cf82
commit 90542293d8
No known key found for this signature in database

View file

@ -189,31 +189,6 @@ class ApplePayButton extends PaymentButton {
return input?.value || this.buttonConfig.nonce;
}
/**
* Determines if the current payment button should be rendered as a stand-alone gateway.
* The return value `false` usually means, that the payment button is bundled with all available
* payment buttons.
*
* The decision depends on the button context (placement) and the plugin settings.
*
* @return {boolean} True, if the current button represents a stand-alone gateway.
*/
get isSeparateGateway() {
return (
this.buttonConfig.is_wc_gateway_enabled &&
PaymentContext.Gateways.includes( this.context )
);
}
/**
* Checks whether the main button-wrapper is present in the current DOM.
*
* @return {boolean} True, if the button context (wrapper element) is found.
*/
get isPresent() {
return this.wrapperElement instanceof HTMLElement;
}
/**
* @inheritDoc
*/