Thank you all for the advice !
function myclassA() { this.A = 1; this.TimerID = null; } myclassA.prototype.func_1 = function() { /* here some code */ this.TimerID = setInterval(this.func_2.bind(this), 50); } myclassA.prototype.func_2 = function() { /* There was an error ! )) */ } function myclassB(_object) { this.B = 1; this.Obj = _object; } myclassB.prototype.func_1 = function() { /* here some code */ this.Obj.func_1(); }
@Konkery started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thank you all for the advice !