mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Use an arrow function.
This commit is contained in:
@@ -137,7 +137,7 @@ function tidyHighlights($) {
|
|||||||
$element.attr('class', attr || null);
|
$element.attr('class', attr || null);
|
||||||
});
|
});
|
||||||
// Collapse nested highlights.
|
// Collapse nested highlights.
|
||||||
_.each(['comment', 'string'], function(cls) {
|
_.each(['comment', 'string'], cls => {
|
||||||
$parent.find(`[class~="${ cls }"] > [class~="${ cls }"]`).each(function() {
|
$parent.find(`[class~="${ cls }"] > [class~="${ cls }"]`).each(function() {
|
||||||
const $parent = $(this).parent();
|
const $parent = $(this).parent();
|
||||||
$parent.text($parent.text());
|
$parent.text($parent.text());
|
||||||
|
|||||||
Reference in New Issue
Block a user