Commit 414aa477 authored by Björn Bartels's avatar Björn Bartels

fix node 5 'unknown/unexpected token'

parent 61792a13
Pipeline #54 passed with stage
......@@ -37,7 +37,7 @@ function getCategories ( ) {
if ( !isCatInList( categories, cat, 'slug' ) ) {
var catPatterns = this.listpatterns(cat.slug);
cat.patterns = catPatterns;
cat.patternsCount = ((b) => {
cat.patternsCount = (function (b) {
var c = 0; for (var a in b) { c++; }; return c;
})(catPatterns);
categories.push(cat);
......
......@@ -19,7 +19,7 @@ module.exports = function ( ) {
if ( !isCatInList( categories, cat, 'slug' ) ) {
var catPatterns = patternByCategorySlug(cat.slug, patterns);
cat.patterns = catPatterns;
cat.patternsCount = ((b) => {
cat.patternsCount = (function (b) {
var c = 0; for (var a in b) { c++; }; return c;
})(catPatterns);
categories.push(cat);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment