EventHub.RemoveEventListeners

Will unsubscribe a number of callbacks from a given event type

Example

var eventHub = new EventHub(); var callbacks = { nameChanged1: function(nameArgs) { alert(nameArgs.name); }, nameChanged2: function(nameArgs) { alert("Another Method" + nameArgs.name); } } eventHub.RemoveEventListeners("name-changed", callbacks);

(Void) RemoveEventListeners(eventType(String) The event type to unsubscribe from , callbacks(Array) Array of callbacks to unsubscribe from subscription list )

Param

  • eventType

    (String)

    The event type to unsubscribe from

  • callbacks

    (Array)

    Array of callbacks to unsubscribe from subscription list