Merge pull request #2024 from normanjaeckel/JSHintFailReporter
Fixed gulp jshint task.
This commit is contained in:
commit
6799cab940
@ -134,7 +134,8 @@ gulp.task('jshint', function () {
|
|||||||
path.join( 'openslides', '*', 'static', '**', '*.js' ),
|
path.join( 'openslides', '*', 'static', '**', '*.js' ),
|
||||||
])
|
])
|
||||||
.pipe(jshint())
|
.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
|
// 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);
|
var startIndex = tree.indexOf($scope.rootItem);
|
||||||
tree = tree.slice(startIndex);
|
tree = tree.slice(startIndex);
|
||||||
// define delta to move the whole subtree to level 0
|
// define delta to move the whole subtree to level 0
|
||||||
|
var parentCountDelta = 0;
|
||||||
if (tree[0]) {
|
if (tree[0]) {
|
||||||
var parentCountDelta = tree[0].parentCount;
|
parentCountDelta = tree[0].parentCount;
|
||||||
}
|
}
|
||||||
$scope.items = [];
|
$scope.items = [];
|
||||||
for (var i = 1; i < tree.length; i++) {
|
for (var i = 1; i < tree.length; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user