woocommerce / woocommerce-gateway-paypal-express-checkout

58 stars 65 forks source link

Replace jQuery 3.x deprecated functions #852

Closed james-allan closed 3 years ago

james-allan commented 3 years ago

Description

This PR replaces jQuery 3.x deprecated functions with their corresponding functions.

This mostly includes the following type of conversions:

  1. $( '...' ).click( ... ) -> $( '...' ).on( 'click', ... )
  2. $( '...' ).click() -> $( '...' ).trigger( 'click' )

Steps to test:

There's a lot of lines that this PR is changing so its best to review each line individually and then run through a bunch of standard tests of the checkout and smart payment buttons.

Documentation

Changelog entry

Enter a summary of all changes on this Pull Request. This will appear in the changelog if accepted.

mattallan commented 3 years ago

LGTM! Thanks @james-allan 💯