Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Before fix
- // $('#foo-btn').on('click', (e) => {
- // $(e.currentTarget).text('clicked')
- // })
- // After fix
- $('#foo-btn').on('click', (e) => {
- $(e.currentTarget).text('clicked')
- }).attr('data-cy', 'event-attached')
Add Comment
Please, Sign In to add comment