Kiffi Well-Known Member Licensed User Longtime User Dec 3, 2018 #1 Hello, this B4J-Code: Code: Copy Sub BANano_Ready() #If JAVASCRIPT alert("!"); #End If End Sub is transpiled to this code: Code: Copy function banano_demo2() { var self; // [34] Sub BANano_Ready() this.banano_ready= function() { if (self==null) self=this; // End Sub }; } alert("!"); _banano_demo2.banano_ready(); Thanks in advance & Greetings ... Peter
Hello, this B4J-Code: Code: Copy Sub BANano_Ready() #If JAVASCRIPT alert("!"); #End If End Sub is transpiled to this code: Code: Copy function banano_demo2() { var self; // [34] Sub BANano_Ready() this.banano_ready= function() { if (self==null) self=this; // End Sub }; } alert("!"); _banano_demo2.banano_ready(); Thanks in advance & Greetings ... Peter
alwaysbusy Expert Licensed User Longtime User Dec 3, 2018 #2 Yes, this is expected behaviour. For the moment, inline javascript cannot be used inside B4J methods. Something I'm planning to add in the future. Upvote 0
Yes, this is expected behaviour. For the moment, inline javascript cannot be used inside B4J methods. Something I'm planning to add in the future.