mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
💡 Improve some code comments
This commit is contained in:
parent
5a870de4f4
commit
b37d8cf838
1 changed files with 6 additions and 1 deletions
|
@ -84,6 +84,8 @@ class GooglepayButton extends PaymentButton {
|
|||
*/
|
||||
#transactionInfo = null;
|
||||
|
||||
googlePayConfig = null;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
@ -120,6 +122,9 @@ class GooglepayButton extends PaymentButton {
|
|||
ppcpConfig,
|
||||
contextHandler
|
||||
) {
|
||||
// Disable debug output in the browser console:
|
||||
// buttonConfig.is_debug = false;
|
||||
|
||||
super(
|
||||
context,
|
||||
externalHandler,
|
||||
|
@ -244,7 +249,7 @@ class GooglepayButton extends PaymentButton {
|
|||
}
|
||||
|
||||
init() {
|
||||
// Stop, if the button is already initialized.
|
||||
// Use `reinit()` to force a full refresh of an initialized button.
|
||||
if ( this.isInitialized ) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue