Fixed gulp jshint task.
This commit is contained in:
parent
7e6ff44696
commit
3c6d4d5e30
@ -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
|
||||
|
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user