EventHub.RemoveEventListener

Warn

  • callbacks should be pre-defined functions, not inline closures so they can be removed from subscription queue if required

Will unsubscribe a callback for a given event type

Example

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

(Void) RemoveEventListener(eventType(String) The event type to unsubscribe from , callback(Function) The callback to remove from the subscription list )

Param

  • eventType

    (String)

    The event type to unsubscribe from

  • callback

    (Function)

    The callback to remove from the subscription list