diff options
Diffstat (limited to 'src')
-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) |