Looks like we can merge this into one listener:

```
$(window).on('statechange oae.deleteresources.done', function() {
  // TODO
}
```

I'll fix.