From 9d507c390fad70937d8ba3e997fdeb069022eece Mon Sep 17 00:00:00 2001 From: Florrie Date: Sat, 2 Sep 2017 11:22:12 -0300 Subject: Rename HistoryManager to HistoryController --- src/pickers2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit 1.3.0-6-gf8a5