Jan Blok:
[fix] 348943 No warning for “xxx instanceof Label” while Label is not something that can be used
this one means that it is now possible it check the elements for there type
We have added for alle elements now Runtime types that can be checked, they all start with the prefix Runtime, like RuntimeTextField
so instead of this:
if (elements.myelement != null && elements.myelement.getElementType() == ELEMENT_TYPES.TEXT_FIELD) {
// its a textfield
}
you can do:
if (elements.myelement instanceof RuntimeTextField) {
/** @type {RuntimeTextField} */
var field = elements.myelement;
// its a textfield
}