When I change speed I do not need to save position.
What do you think about the following implementation?
```javascript
function saveState(async, data) {
    if (!($.isPlainObject(data))) {
        data = {
            position: Math.round(this.videoPlayer.currentTime)
        };
    }

    if (data.speed) {
        this.storage.setItem('speed', data.speed, true);
    }
    if (data.position) {
        this.storage.setItem('position', data.position, true);
    }
    $.ajax({
        url: this.config.saveStateUrl,
        type: 'POST',
        async: async ? true : false,
        dataType: 'json',
        data: data,
    });
}
```