Skip to content

Commit 92dd48c

Browse files
daftspunkmathieumahe
authored andcommitted
Syntax error from testing in ES6
1 parent 66fd151 commit 92dd48c

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
@@ -1555,9 +1555,10 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
15551555
Sortable.clone =
15561556
Sortable.active = null;
15571557

1558-
savedInputChecked.forEach(function (el) {
1559-
if (this.el.contains(el)) {
1560-
el.checked = true;
1558+
let el = this.el;
1559+
savedInputChecked.forEach(function (checkEl) {
1560+
if (el.contains(checkEl)) {
1561+
checkEl.checked = true;
15611562
}
15621563
});
15631564

0 commit comments

Comments
 (0)