« get me outta code hell

Rename HistoryManager to HistoryController - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2017-09-02 11:22:12 -0300
committerFlorrie <towerofnix@gmail.com>2017-09-02 11:22:12 -0300
commit9d507c390fad70937d8ba3e997fdeb069022eece (patch)
tree699558073fc01a3e7501dc17630ba7075eb8a6d7
parenta2bf03ce944b83bef425df315e0055049990bd1f (diff)
Rename HistoryManager to HistoryController
-rw-r--r--src/pickers2.js4
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)