mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
* Remove commented code
This commit is contained in:
parent
044a704048
commit
cc79f62cab
2 changed files with 1 additions and 11 deletions
|
@ -32,8 +32,6 @@ class MessageRenderer {
|
||||||
|
|
||||||
widgetBuilder.registerMessages(this.config.wrapper, options);
|
widgetBuilder.registerMessages(this.config.wrapper, options);
|
||||||
widgetBuilder.renderMessages(this.config.wrapper);
|
widgetBuilder.renderMessages(this.config.wrapper);
|
||||||
|
|
||||||
// paypal.Messages(options).render(this.config.wrapper);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
optionsEqual(options) {
|
optionsEqual(options) {
|
||||||
|
|
|
@ -119,15 +119,7 @@ class Renderer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
isAlreadyRendered(wrapper, fundingSource, hasEnabledSeparateGateways) {
|
isAlreadyRendered(wrapper, fundingSource) {
|
||||||
// Simply check that has child nodes when we do not need to render buttons separately,
|
|
||||||
// this will reduce the risk of breaking with different themes/plugins
|
|
||||||
// and on the cart page (where we also do not need to render separately), which may fully reload this part of the page.
|
|
||||||
// Ideally we should also find a way to detect such full reloads and remove the corresponding keys from the set.
|
|
||||||
|
|
||||||
// if (!hasEnabledSeparateGateways) {
|
|
||||||
// return document.querySelector(wrapper).hasChildNodes();
|
|
||||||
// }
|
|
||||||
return this.renderedSources.has(wrapper + (fundingSource ?? ''));
|
return this.renderedSources.has(wrapper + (fundingSource ?? ''));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue