Further refactoring of the queue controller and view
- Removes queue-related functions from the main controller. They are now handled by queue.js, which delegates them to player-service.js - Fixes problem in scrobbling. A song is no longer scrobbled every time it is paused. A song will not be scrobbled upon loading, only while it is playing. - Moves the entire html for the sidebar queue to queue.html. It replaces a template that was no longer used. - Most queue-related functions in player return player itself to make them chainable just like in jQuery, e.g. : player.shuffleQueue().playFirstSong();
This commit is contained in:
parent
83869b7808
commit
c787c468b9
12 changed files with 85 additions and 89 deletions
|
@ -66,7 +66,6 @@ describe("Main controller", function() {
|
|||
spyOn(locker, "get").and.callFake(function(key) {
|
||||
return fakeStorage[key];
|
||||
});
|
||||
spyOn(utils, "browserStorageCheck").and.returnValue(true);
|
||||
});
|
||||
|
||||
describe("loadTrackPosition -", function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue