Skip to content

Commit

Permalink
Fix custom prototype array (#1706)
Browse files Browse the repository at this point in the history
* Add failing test for custom array prototype

* Use forEach

* Use array.forEach

* use jquery each
  • Loading branch information
barryvdh authored Nov 25, 2024
1 parent 3812be6 commit 2e805a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/queries/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@
const $li = $('<li />').addClass(csscls('table-list-item'));
const $muted = $('<span />').addClass(css('text-muted'));

values.forEach((value, i) => {
$.each(values, (i, value) => {
if (showLineNumbers) {
$ul.append($li.clone().append([$muted.clone().text(`${i}:`), '&nbsp;', $('<span/>').text(value)]));
} else {
Expand Down

0 comments on commit 2e805a6

Please sign in to comment.