Fixed gulp jshint task.

This commit is contained in:
Norman Jäckel 2016-03-02 16:51:40 +01:00
parent 7e6ff44696
commit 3c6d4d5e30
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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++) {