From 568832c5af767ba9f15179fade4aa8e2f308b741 Mon Sep 17 00:00:00 2001 From: bergquist Date: Mon, 18 Jan 2016 14:58:46 +0100 Subject: [PATCH] style(playlist): improves variable name --- public/app/features/playlist/playlistSrv.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/app/features/playlist/playlistSrv.ts b/public/app/features/playlist/playlistSrv.ts index bae60804643..d5d386a88ca 100644 --- a/public/app/features/playlist/playlistSrv.ts +++ b/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];