Explorar el Código

style(playlist): improves variable name

bergquist hace 10 años
padre
commit
568832c5af
Se han modificado 1 ficheros con 3 adiciones y 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];