hasEvent(type)

checks whether a component has an event

Parameters

  • type - event name
    • string

Returns

true or false