Skip to content

Commit 068c403

Browse files
committed
Add back Object Method header in bind-to-js section
1 parent ed4b992 commit 068c403

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pages/docs/manual/latest/bind-to-js-function.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ MyGame.draw(10, 20, undefined);
8282

8383
</CodeTab>
8484

85+
## Object Method
86+
8587
Functions attached to a JS objects (other than JS modules) require a special way of binding to them, using `bs.send`:
8688

8789
<CodeTab labels={["ReScript", "JS Output"]}>

pages/docs/manual/v8.0.0/bind-to-js-function.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ MyGame.draw(10, 20, undefined);
101101

102102
</CodeTab>
103103

104+
## Object Method
105+
104106
Functions attached to a JS objects (other than JS modules) require a special way of binding to them, using `bs.send`:
105107

106108
<CodeTab labels={["Reason (Old Syntax)", "ML (Older Syntax)", "JS Output"]}>

0 commit comments

Comments
 (0)