From 3c6d4d5e3014e65b96801cbec8b242caaf238b39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Wed, 2 Mar 2016 16:51:40 +0100 Subject: [PATCH] Fixed gulp jshint task. --- gulpfile.js | 3 ++- openslides/agenda/static/js/agenda/projector.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 7b9e8ee14..eadcd54a6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -134,7 +134,8 @@ gulp.task('jshint', function () { path.join( 'openslides', '*', 'static', '**', '*.js' ), ]) .pipe(jshint()) - .pipe(jshint.reporter('default')); + .pipe(jshint.reporter('default')) + .pipe(jshint.reporter('fail')); }); // Extracts names, URLs and licensed of all uses bower components and prints diff --git a/openslides/agenda/static/js/agenda/projector.js b/openslides/agenda/static/js/agenda/projector.js index 80577f81b..759619c35 100644 --- a/openslides/agenda/static/js/agenda/projector.js +++ b/openslides/agenda/static/js/agenda/projector.js @@ -52,8 +52,9 @@ angular.module('OpenSlidesApp.agenda.projector', ['OpenSlidesApp.agenda']) var startIndex = tree.indexOf($scope.rootItem); tree = tree.slice(startIndex); // define delta to move the whole subtree to level 0 + var parentCountDelta = 0; if (tree[0]) { - var parentCountDelta = tree[0].parentCount; + parentCountDelta = tree[0].parentCount; } $scope.items = []; for (var i = 1; i < tree.length; i++) {