B4J Question [BANano] JavaScript code is moved outside the B4J-Sub

Kiffi

Well-Known Member
Licensed User
Longtime User
Hello,

this B4J-Code:
B4X:
Sub BANano_Ready()
   
    #If JAVASCRIPT
        alert("!");
    #End If  
   
End Sub

is transpiled to this code:
B4X:
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
 
Top