I gotcha. So the order of events would be:

1. `ajax:aborted:file` event fired
2. `remotipart.setup` function run
3. `$.rails.handleRemote` function run

The `ujs:submit-button` gets removed in jquery-ujs where you pointed on line 96 in the `handleRemote` function, so it would still be available on line 38 above, since that runs before the `handleRemote` function.