Fix JavaScript errors in chromium.

This commit is contained in:
Emanuel Schuetze 2015-06-21 19:39:36 +02:00
parent a0f4506c35
commit 002a4d583e
2 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,7 @@ gulp.task('css', function() {
// Catches all font files from all bower components. // Catches all font files from all bower components.
gulp.task('fonts', function() { gulp.task('fonts', function() {
return gulp.src(mainBowerFiles({ return gulp.src(mainBowerFiles({
filter: /\.(eot)|(svg)|(ttf)|(woff)$/ filter: /\.(eot)|(svg)|(ttf)|(woff)|(woff2)$/
})) }))
.pipe(gulp.dest(path.join(output_directory, 'fonts'))); .pipe(gulp.dest(path.join(output_directory, 'fonts')));
}); });

View File

@ -86,7 +86,8 @@ angular.module('OpenSlidesApp.agenda.site', ['OpenSlidesApp.agenda'])
// get a 'flat' (ordered) array of agenda tree to display in table // get a 'flat' (ordered) array of agenda tree to display in table
$scope.flattenedTree = buildTree(tree.data); $scope.flattenedTree = buildTree(tree.data);
function buildTree(tree, level = 0) { function buildTree(tree, level) {
var level = level || 0
var nodes = []; var nodes = [];
var defaultlevel = level; var defaultlevel = level;
_.each(tree, function(node) { _.each(tree, function(node) {