Rename events to be consistent

- Make State.save() always throttle calls -- since that's the common
case.

- Immediate saves are now the exception, with State.saveImmediate().

- The function is called State.save(), so the dispatch event should be
'stateSave'.
This commit is contained in:
Feross Aboukhadijeh
2016-09-21 11:59:23 -07:00
parent 1e05487acd
commit 7c158e9f2c
7 changed files with 21 additions and 20 deletions

View File

@@ -158,7 +158,7 @@ module.exports = class TorrentListController {
// remove torrent from saved list
this.state.saved.torrents.splice(index, 1)
dispatch('saveStateThrottled')
dispatch('stateSave')
}
// prevent user from going forward to a deleted torrent