Learn R Programming

AnalysisPageServer (version 1.6.2)

clear.event.handlers: clear.event.handlers

Description

Clear the Handlers list for one Event

Usage

clear.event.handlers(registry, event)

Arguments

registry
EventRegistry
event
String. Name of the Event.

Value

Nothing good.

Details

Clear the Handlers list for one Event. Does not remove the Event from the EventRegistry.

Examples

Run this code
r <- new.event.registry()
add.event(r, "mouseclick")
add.event.handler(r, "mouseclick", function(x, y)  message("Mouse clicked at coordinates (", x, ", ", y, ")"))
trigger.event(r, "mouseclick", x = 30, y = 50)
clear.event.handlers(r, "mouseclick")
trigger.event(r, "mouseclick", x = 30, y = 50)

Run the code above in your browser using DataLab