I think it should be so:
```javascript
$(window).off('unload', previousState.saveState);
```