Codemod verified
Regularly tested and maintained by our engineers and codemod expert community.
Ember
migration
byCodemod
Ember/5/Jquery Event
Last update
Jul 24, 2024
Using event object APIs that are specific to jQuery.Event
, such as originalEvent
, is deprecated in Ember.js v3.3. This codemod removes all calls to originalEvent
in case of accessing properties that work with jQuery events as well as native events.
Before
// your event handler:export default Component.extend({click(event) {let x = event.originalEvent.clientX;},});
After
// your event handler:export default Component.extend({click(event) {let x = event.clientX;},});
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community