Use an arrow function.

This commit is contained in:
John-David Dalton
2016-09-05 23:18:39 -07:00
parent bc13666222
commit 86efb0ea09

View File

@@ -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());