This bit of code is tries to execute a parameter even if it is not of the type function. It would be better to check if for it.
mendix.lang.nullExec = function(callback) {
if (typeof callback === "function") {
callback();
} else {
console.warn("nullExec should have a function as argument")
}
};
The function has been replaced, because it will be considered (still works) deprecated in Mendix 7. The use of undocumented APIs is strongly discouraged.
Dear Mendix,
The API Documentation does not describe the use of the nullExec function of the boilerplate https://github.com/mendix/AppStoreWidgetBoilerplate/blob/master/src/WidgetName/widget/WidgetName.js#L180
It should be updated in the documentation https://apidocs.mendix.com/6/client/module-mendix_lang.html
We have also noted that the code is:
This bit of code is tries to execute a parameter even if it is not of the type function. It would be better to check if for it.