JS Sprawdź, czy funkcja jest dostępna w zakresie
if (typeof me.onChange === "function") {
// safe to use the function
}
Eager Elephant
if (typeof me.onChange === "function") {
// safe to use the function
}