mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +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;
|
#transactionInfo = null;
|
||||||
|
|
||||||
|
googlePayConfig = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
|
@ -120,6 +122,9 @@ class GooglepayButton extends PaymentButton {
|
||||||
ppcpConfig,
|
ppcpConfig,
|
||||||
contextHandler
|
contextHandler
|
||||||
) {
|
) {
|
||||||
|
// Disable debug output in the browser console:
|
||||||
|
// buttonConfig.is_debug = false;
|
||||||
|
|
||||||
super(
|
super(
|
||||||
context,
|
context,
|
||||||
externalHandler,
|
externalHandler,
|
||||||
|
@ -244,7 +249,7 @@ class GooglepayButton extends PaymentButton {
|
||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
// Stop, if the button is already initialized.
|
// Use `reinit()` to force a full refresh of an initialized button.
|
||||||
if ( this.isInitialized ) {
|
if ( this.isInitialized ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue