EventHub.GetListenersForEvent

Returns a list of listeners for the event type

Example

var eventHub = new EventHub(); var callback = function(nameArgs){ alert(nameArgs.name); } eventHub.AddEventListener("name-changed", callback); var subscribers = eventHub.GetListenersForEvent("name-changed");

(Array) GetListenersForEvent(eventType(String) The event type to unsubscribe from )

Param

  • eventType

    (String)

    The event type to unsubscribe from

Return

  • (Array)

    returns an array of strings, each containing the source code for the callback