Also, the event object isn't being used so in total it could become:
```coffee
$(document).on 'change','.has_many_container[data-sortable] :input[name$="[_destroy]"]', ->
  recompute_positions $(@).closest '.has_many'