[x] Does your code follow the Extendables standards?
[ ] Have you written new tests for your changes, as applicable?
[x] Have you successfully run tests with your changes locally?
Changes proposed in this Pull Request:
Was introduced in pull #165 and produces:
Uncaught AmazonPay:
Can not find element #pay_with_amazon_2 for amazon.Pay.renderButton.
renderButton is being registered as a callback to jQuery Events, which pass always the Event as the first parameter. As a result the function was running with invalid parameters. We ensure that when that happens, params revert back to defaults.
Other information:
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
All Submissions:
Changes proposed in this Pull Request:
Was introduced in pull #165 and produces:
renderButton is being registered as a callback to jQuery Events, which pass always the Event as the first parameter. As a result the function was running with invalid parameters. We ensure that when that happens, params revert back to defaults.
Other information: