* Remove commented code

This commit is contained in:
Pedro Silva 2023-07-25 08:35:07 +01:00
parent 044a704048
commit cc79f62cab
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
2 changed files with 1 additions and 11 deletions

View file

@ -32,8 +32,6 @@ class MessageRenderer {
widgetBuilder.registerMessages(this.config.wrapper, options);
widgetBuilder.renderMessages(this.config.wrapper);
// paypal.Messages(options).render(this.config.wrapper);
}
optionsEqual(options) {

View file

@ -119,15 +119,7 @@ class Renderer {
}
}
isAlreadyRendered(wrapper, fundingSource, hasEnabledSeparateGateways) {
// 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();
// }
isAlreadyRendered(wrapper, fundingSource) {
return this.renderedSources.has(wrapper + (fundingSource ?? ''));
}