Is there any method in JS named _addFunctionCall ? I came across following line in a legacy application.
Method defination:
i2b2.ONT.ajax._addFunctionCall( "GetNameInfo",
"{{{URL}}}getNameInfo",
i2b2.ONT.cfg.msgs.GetNameInfo,
null,
i2b2.ONT.cfg.parsers.ExtractConcepts);
Method call:
var results = i2b2.ONT.ajax.GetNameInfo("ONT:FindBy", searchOptions);
My another question is GetNameInfo method call contains only two parameters while it seems that method defination contains more than two parameters.So how things work here ?
An argument not passed will be
undefinedwithin the function (just like any other uninitialized variable) & extra arguments can be read within the function viaarguments[ordinal].