From 2e805a6bd4e1aa83774316bb062703c65d0691ef Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Mon, 25 Nov 2024 15:51:20 +0100 Subject: [PATCH] Fix custom prototype array (#1706) * Add failing test for custom array prototype * Use forEach * Use array.forEach * use jquery each --- src/Resources/queries/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/queries/widget.js b/src/Resources/queries/widget.js index 242565ac..2c6a0513 100644 --- a/src/Resources/queries/widget.js +++ b/src/Resources/queries/widget.js @@ -343,7 +343,7 @@ const $li = $('
  • ').addClass(csscls('table-list-item')); const $muted = $('').addClass(css('text-muted')); - values.forEach((value, i) => { + $.each(values, (i, value) => { if (showLineNumbers) { $ul.append($li.clone().append([$muted.clone().text(`${i}:`), ' ', $('').text(value)])); } else {