Browse Source

style(playlist): improves variable name

bergquist 10 years ago
parent
commit
568832c5af
1 changed files with 3 additions and 1 deletions
  1. 3 1
      public/app/features/playlist/playlistSrv.ts

+ 3 - 1
public/app/features/playlist/playlistSrv.ts

@@ -19,7 +19,9 @@ class PlaylistSrv {
 
 
     angular.element(window).unbind('resize');
     angular.element(window).unbind('resize');
 
 
-    if (this.index > this.dashboards.length -1) {
+    var playedAllDashboards = this.index > this.dashboards.length - 1;
+
+    if (playedAllDashboards) {
       this.start(this.playlistId);
       this.start(this.playlistId);
     } else {
     } else {
       var dash = this.dashboards[this.index];
       var dash = this.dashboards[this.index];