From 86efb0ea096071bb7f7dc8bab4fc1e64d4b6a9ee Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 5 Sep 2016 23:18:39 -0700 Subject: [PATCH] Use an arrow function. --- lib/main/build-site.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main/build-site.js b/lib/main/build-site.js index 11b9f9d00..a98beb9f1 100644 --- a/lib/main/build-site.js +++ b/lib/main/build-site.js @@ -137,7 +137,7 @@ function tidyHighlights($) { $element.attr('class', attr || null); }); // Collapse nested highlights. - _.each(['comment', 'string'], function(cls) { + _.each(['comment', 'string'], cls => { $parent.find(`[class~="${ cls }"] > [class~="${ cls }"]`).each(function() { const $parent = $(this).parent(); $parent.text($parent.text());