Creates an event blocker instance associated to a specific HTML element.
Element that is to be associated with this blocker for block und unblock.
Optional events that are blocked immediately.
Lookup table for blocked events and their listener.
Element associated to this blocker.
Blocks a specific event by adding a listener the prevents the default and stops propagation.
Event identifier that is to be blocked, e.g., 'contextmenu'.
Unblocks a previously blocked event by removing the blocker/listener.
Event identifier that is to be unblocked, e.g., 'contextmenu'.
Auxiliary class for blocking and unblocking events on a HTML element. Example for blocking the contextmenu: