Explorar o código

style(playlist): improves variable name

bergquist %!s(int64=10) %!d(string=hai) anos
pai
achega
568832c5af
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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');
 
-    if (this.index > this.dashboards.length -1) {
+    var playedAllDashboards = this.index > this.dashboards.length - 1;
+
+    if (playedAllDashboards) {
       this.start(this.playlistId);
     } else {
       var dash = this.dashboards[this.index];