Skip to content

Commit 2e805a6

Browse files
authored
Fix custom prototype array (#1706)
* Add failing test for custom array prototype * Use forEach * Use array.forEach * use jquery each
1 parent 3812be6 commit 2e805a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Resources/queries/widget.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@
343343
const $li = $('<li />').addClass(csscls('table-list-item'));
344344
const $muted = $('<span />').addClass(css('text-muted'));
345345

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

0 commit comments

Comments
 (0)