diff --git a/doc/classes/JavaScriptObject.xml b/doc/classes/JavaScriptObject.xml index f0cbc005f06..af3af4367c8 100644 --- a/doc/classes/JavaScriptObject.xml +++ b/doc/classes/JavaScriptObject.xml @@ -9,7 +9,7 @@ [codeblock] extends Node - var _my_js_callback = JavaScriptBridge.create_callback(self, "myCallback") # This reference must be kept + var _my_js_callback = JavaScriptBridge.create_callback(myCallback) # This reference must be kept var console = JavaScriptBridge.get_interface("console") func _init():