diff options
author | Florrie <towerofnix@gmail.com> | 2017-09-02 11:22:12 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2017-09-02 11:22:12 -0300 |
commit | 9d507c390fad70937d8ba3e997fdeb069022eece (patch) | |
tree | 699558073fc01a3e7501dc17630ba7075eb8a6d7 | |
parent | a2bf03ce944b83bef425df315e0055049990bd1f (diff) |
Rename HistoryManager to HistoryController
-rw-r--r-- | src/pickers2.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pickers2.js b/src/pickers2.js index 1921e88..c7ff1a6 100644 --- a/src/pickers2.js +++ b/src/pickers2.js @@ -14,7 +14,7 @@ const { flattenGrouplike } = require('./playlist-utils') -class HistoryManager { +class HistoryController { constructor(playlist, picker, pickerOptions = {}) { this.playlist = playlist this.picker = picker @@ -211,7 +211,7 @@ function generalPicker(playlist, lastTrack, options) { if (require.main === module) { const playlist = {items: [{x: 'A'}, {x: 'B'}, {x: 'C'}, {items: [{x: 'D-a'}, {x: 'D-b'}]}, {x: 'E'}]} - const hm = new HistoryManager(playlist, generalPicker, {sort: 'ordered', loop: 'loop'}) + const hm = new HistoryController(playlist, generalPicker, {sort: 'ordered', loop: 'loop'}) hm.fillTimeline() console.log(hm.timeline) console.log('initial length:', hm.timeline.length) |