FCF 2.0 development in progress...
> > > > > >
[News] [Packages API] [Downloads] [Donate to the project] [Contacts]

detach() method from fcf.EventChannel class

detach(function a_callback)
detach(string a_eventName, function a_callback)

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Unbinds a callback from a message channel

Arguments

string a_eventName
- The name of the event. If an argument is given, the unbinding of the given event handler is performed only for the given event type. If the argument is not given, the event handler is unbind for all event types.

function a_callback
- Event handler function