mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
🔥 Remove an unused function argument
This commit is contained in:
parent
f5194c0be4
commit
745c1cc88c
1 changed files with 3 additions and 16 deletions
|
@ -65,8 +65,7 @@ class Renderer {
|
||||||
this.renderButtons(
|
this.renderButtons(
|
||||||
settings.button.wrapper,
|
settings.button.wrapper,
|
||||||
settings.button.style,
|
settings.button.style,
|
||||||
contextConfig,
|
contextConfig
|
||||||
hasEnabledSeparateGateways
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -85,7 +84,6 @@ class Renderer {
|
||||||
settings.button.wrapper,
|
settings.button.wrapper,
|
||||||
style,
|
style,
|
||||||
contextConfig,
|
contextConfig,
|
||||||
hasEnabledSeparateGateways,
|
|
||||||
fundingSource
|
fundingSource
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -105,26 +103,15 @@ class Renderer {
|
||||||
data.wrapper,
|
data.wrapper,
|
||||||
data.style,
|
data.style,
|
||||||
contextConfig,
|
contextConfig,
|
||||||
hasEnabledSeparateGateways,
|
|
||||||
fundingSource
|
fundingSource
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
renderButtons(
|
renderButtons( wrapper, style, contextConfig, fundingSource = null ) {
|
||||||
wrapper,
|
|
||||||
style,
|
|
||||||
contextConfig,
|
|
||||||
hasEnabledSeparateGateways,
|
|
||||||
fundingSource = null
|
|
||||||
) {
|
|
||||||
if (
|
if (
|
||||||
! document.querySelector( wrapper ) ||
|
! document.querySelector( wrapper ) ||
|
||||||
this.isAlreadyRendered(
|
this.isAlreadyRendered( wrapper, fundingSource )
|
||||||
wrapper,
|
|
||||||
fundingSource,
|
|
||||||
hasEnabledSeparateGateways
|
|
||||||
)
|
|
||||||
) {
|
) {
|
||||||
// Try to render registered buttons again in case they were removed from the DOM by an external source.
|
// Try to render registered buttons again in case they were removed from the DOM by an external source.
|
||||||
widgetBuilder.renderButtons( [ wrapper, fundingSource ] );
|
widgetBuilder.renderButtons( [ wrapper, fundingSource ] );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue