Skip to content

Commit

Permalink
Merge pull request godotengine#100939 from Faless/fix/js_singleton_cb…
Browse files Browse the repository at this point in the history
…_docs

[Web] Clarify JavaScriptBridge callback requirements
  • Loading branch information
Repiteo committed Feb 6, 2025
2 parents 33dc3bf + 198dd40 commit 525aa0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/classes/JavaScriptBridge.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<param index="0" name="callable" type="Callable" />
<description>
Creates a reference to a [Callable] that can be used as a callback by JavaScript. The reference must be kept until the callback happens, or it won't be called at all. See [JavaScriptObject] for usage.
[b]Note:[/b] The callback function must take exactly one [Array] argument, which is going to be the JavaScript [url=https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments]arguments object[/url] converted to an array.
</description>
</method>
<method name="create_object" qualifiers="vararg">
Expand Down

0 comments on commit 525aa0a

Please sign in to comment.