Maybe a lot of you will find this question trivial, but after 3 days of searching without any answer i found the answer by myself and maybe someone in the future will need this title above while searching google..
I must understand Why A works and B does not?
why i can access my this.MarkContents_Input()
function only as a delegate?
A.
refreshInputStatistics(): void {
this.updateprocessing();
setTimeout(() =>
this.MarkContents_Input(this.vc.returnEditor(staticEditorDirective.textAreaEnum.LeftTextArea))
,50);
}
B.
refreshInputStatistics(): void {
this.updateprocessing();
setTimeout(
this.MarkContents_Input(this.vc.returnEditor(staticEditorDirective.textAreaEnum.LeftTextArea))
,50);
}
I am very new to front end web development, maybe i am missing something(?)
EDIT: my question was marked as duplicate, yes i agree, now i see its duplicated, but search keywords here can help others in the future (as mentioned above, unfortunately 3 days of search did not lead my to the first question, could have saved me a lot of headache... )