checks whether the component has the specified event handler
var is_exit = mydata.hasEvent('onBeforeSelect');