same function here.

I'd simply do:
```javascript
activity.onsuccess = activity.onerror = LinkActionHandler.resetActivityInProgress;
```
(the reset function doesn't use `this` so need to bind it)