8000 Syntax error from testing in ES6 · SortableJS/Sortable@0a88f9a · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a88f9a

Browse files
authored
Syntax error from testing in ES6
1 parent 2be88e3 commit 0a88f9a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Sortable.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,9 +1538,10 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
15381538
Sortable.clone =
15391539
Sortable.active = null;
15401540

1541-
savedInputChecked.forEach(function (el) {
1542-
if (this.el.contains(el)) {
1543-
el.checked = true;
1541+
let el = this.el;
1542+
savedInputChecked.forEach(function (checkEl) {
1543+
if (el.contains(checkEl)) {
1544+
checkEl.checked = true;
15441545
}
15451546
});
15461547

0 commit comments

Comments
 (0)
0