unsubscribe( ) method (JSDOSession class)
- Last Updated: August 28, 2015
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Unsubscribes a given event callback
function from an event of the current JSDOSession
object.
This method throws an exception if the specified event is not supported by the JSDOSession class.
Return type:
undefined
Applies to: progress.data.JSDOSession class
Syntax
|
- event-name
- The name of a
JSDOSessionobject event to which you unsubscribe an event handler. See the reference entry for the progress.data.JSDOSession class for a list of available events. - event-handler
- A reference to an event handler function that is to be removed from the list of callbacks that are called when the specified event fires.
- scope
- An optional object reference that defines the execution scope of the
event handler function. Specifying the scope is optional in the event subscription. If
the event subscription does specify an execution scope, you must
specify a matching scope parameter when you call the
unsubscribe( )method to cancel the event subscription.
The unsubscribe( ) method throws an error
object if event-name does not identify an event supported
by the JSDOSession class (the look up is not case
sensitive), if an argument is not of the correct type, or if there is no handler that was
subscribed for that event with the same scope as passed
to unsubscribe( ).
See also:
progress.data.JSDOSession class, subscribe( ) method (JSDOSession class)