• 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();
    }
    
    
About

Avatar for Konkery @Konkery started