Conversation
| ngSoundManager.directive('shuffleMusic', ['angularPlayer', function (angularPlayer) { | ||
| return { | ||
| restrict: "EA", | ||
| link: function (scope, element, attrs) { |
There was a problem hiding this comment.
'attrs' is defined but never used.
| ngSoundManager.directive('shuffleMusic', ['angularPlayer', function (angularPlayer) { | ||
| return { | ||
| restrict: "EA", | ||
| link: function (scope, element, attrs) { |
There was a problem hiding this comment.
'attrs' is defined but never used.
| restrict: "EA", | ||
| link: function (scope, element, attrs) { | ||
|
|
||
| element.bind('click', function (event) { |
There was a problem hiding this comment.
'event' is defined but never used.
| restrict: "EA", | ||
| link: function (scope, element, attrs) { | ||
|
|
||
| element.bind('click', function (event) { |
There was a problem hiding this comment.
'event' is defined but never used.
| @@ -0,0 +1,18 @@ | |||
| ngSoundManager.directive('shuffleMusic', ['angularPlayer', function (angularPlayer) { | |||
| return { | |||
| restrict: "EA", | |||
There was a problem hiding this comment.
Mixed double and single quotes.
| @@ -0,0 +1,18 @@ | |||
| ngSoundManager.directive('shuffleMusic', ['angularPlayer', function (angularPlayer) { | |||
| return { | |||
| restrict: "EA", | |||
There was a problem hiding this comment.
Mixed double and single quotes.
| @@ -0,0 +1,18 @@ | |||
| ngSoundManager.directive('shuffleMusic', ['angularPlayer', function (angularPlayer) { | |||
There was a problem hiding this comment.
Line is too long.
'ngSoundManager' is not defined.
| @@ -0,0 +1,18 @@ | |||
| ngSoundManager.directive('shuffleMusic', ['angularPlayer', function (angularPlayer) { | |||
There was a problem hiding this comment.
Line is too long.
'ngSoundManager' is not defined.
src/03-factory-angularPlayer.js
Outdated
| } else { | ||
| shuffle = true; | ||
| tempTrack = angular.copy(soundManager.soundIDs); | ||
| tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random() }); |
There was a problem hiding this comment.
Line is too long.
Missing semicolon.
src/03-factory-angularPlayer.js
Outdated
| } else { | ||
| shuffle = true; | ||
| tempTrack = angular.copy(soundManager.soundIDs); | ||
| tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random() }); |
There was a problem hiding this comment.
Line is too long.
Missing semicolon.
| useTrack = tempTrack; | ||
| } | ||
|
|
||
| var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
| useTrack = tempTrack; | ||
| } | ||
|
|
||
| var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
src/03-factory-angularPlayer.js
Outdated
| // generate shuffle track list | ||
| if(shuffle === true && isPlaying === true){ | ||
| tempTrack = angular.copy(soundManager.soundIDs); | ||
| tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random() }); |
There was a problem hiding this comment.
Line is too long.
Missing semicolon.
src/03-factory-angularPlayer.js
Outdated
| // generate shuffle track list | ||
| if(shuffle === true && isPlaying === true){ | ||
| tempTrack = angular.copy(soundManager.soundIDs); | ||
| tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random() }); |
There was a problem hiding this comment.
Line is too long.
Missing semicolon.
| console.log(soundManager.soundIDs); | ||
| console.log(tempTrack); | ||
|
|
||
| var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
| console.log(soundManager.soundIDs); | ||
| console.log(tempTrack); | ||
|
|
||
| var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
| useTrack = tempTrack; | ||
| } | ||
|
|
||
| var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
| useTrack = tempTrack; | ||
| } | ||
|
|
||
| var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
| useTrack = tempTrack; | ||
| } | ||
|
|
||
| var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
| ngSoundManager.directive('shuffleAllMusic', ['angularPlayer', function (angularPlayer) { | ||
| return { | ||
| restrict: "EA", | ||
| link: function (scope, element, attrs) { |
There was a problem hiding this comment.
'attrs' is defined but never used.
| restrict: "EA", | ||
| link: function (scope, element, attrs) { | ||
|
|
||
| element.bind('click', function (event) { |
There was a problem hiding this comment.
'event' is defined but never used.
| @@ -0,0 +1,13 @@ | |||
| ngSoundManager.directive('shuffleAllMusic', ['angularPlayer', function (angularPlayer) { | |||
| return { | |||
| restrict: "EA", | |||
There was a problem hiding this comment.
Mixed double and single quotes.
| @@ -0,0 +1,13 @@ | |||
| ngSoundManager.directive('shuffleAllMusic', ['angularPlayer', function (angularPlayer) { | |||
There was a problem hiding this comment.
Line is too long.
'ngSoundManager' is not defined.
| var trackToPlay = null; | ||
| shuffle = true; | ||
| tempTrack = angular.copy(soundManager.soundIDs); | ||
| tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random(); }); |
| } else { | ||
| shuffle = true; | ||
| tempTrack = angular.copy(soundManager.soundIDs); | ||
| tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random(); }); |
| useTrack = tempTrack; | ||
| } | ||
|
|
||
| var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
| // generate shuffle track list | ||
| if(shuffle === true && isPlaying === true){ | ||
| tempTrack = angular.copy(soundManager.soundIDs); | ||
| tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random(); }); |
| ngSoundManager.directive('shuffleAllMusic', ['angularPlayer', function (angularPlayer) { | ||
| return { | ||
| restrict: "EA", | ||
| link: function (scope, element, attrs) { |
There was a problem hiding this comment.
'attrs' is defined but never used.
| restrict: "EA", | ||
| link: function (scope, element, attrs) { | ||
|
|
||
| element.bind('click', function (event) { |
There was a problem hiding this comment.
'event' is defined but never used.
| @@ -0,0 +1,13 @@ | |||
| ngSoundManager.directive('shuffleAllMusic', ['angularPlayer', function (angularPlayer) { | |||
| return { | |||
| restrict: "EA", | |||
There was a problem hiding this comment.
Mixed double and single quotes.
| @@ -0,0 +1,13 @@ | |||
| ngSoundManager.directive('shuffleAllMusic', ['angularPlayer', function (angularPlayer) { | |||
There was a problem hiding this comment.
Line is too long.
'ngSoundManager' is not defined.
| var trackToPlay = null; | ||
| shuffle = true; | ||
| tempTrack = angular.copy(soundManager.soundIDs); | ||
| tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random(); }); |
| } else { | ||
| shuffle = true; | ||
| tempTrack = angular.copy(soundManager.soundIDs); | ||
| tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random(); }); |
| useTrack = tempTrack; | ||
| } | ||
|
|
||
| var currentTrackKey = this.getIndexByValue(useTrack, this.getCurrentTrack()); |
| // generate shuffle track list | ||
| if(shuffle === true && isPlaying === true){ | ||
| tempTrack = angular.copy(soundManager.soundIDs); | ||
| tempTrack = (tempTrack).sort(function() { return 0.5 - Math.random(); }); |
add feature Shuffle