Skip to content

Commit 259cc86

Browse files
author
rob
committed
fix: wrong argument order
1 parent 83f91ce commit 259cc86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/js/tests/Webapi/Webapi__IntersectionObserver__test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ el.innerText = "Hello There";
1515

1616
el.setAttribute("style", "margin-top: 800px; margin-bottom: 800px");
1717

18-
el.appendChild(body);
18+
body.appendChild(el);
1919

2020
function handler(entries, observer) {
2121
entries.forEach(function (entry) {

tests/Webapi/Webapi__IntersectionObserver__test.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let body =
77

88
Webapi.Dom.Element.setInnerText(el, "Hello There")
99
Webapi.Dom.Element.setAttribute(el, "style", "margin-top: 800px; margin-bottom: 800px")
10-
Webapi.Dom.Element.appendChild(el, body)
10+
Webapi.Dom.Element.appendChild(body, el)
1111

1212
let handler = (entries, observer) => {
1313
Js.Array.forEach(entry => {

0 commit comments

Comments
 (0)