Skip to main content

prevent_default

Function prevent_default 

Source
pub fn prevent_default(node: i64, event: &str)
Expand description

Record that a listener on node for event cancels the browser’s default action.

A declaration about the REGISTRATION, so it is recorded once when the listener is attached — a host reads it and calls preventDefault when the event fires, and an in-process host reads it to decide whether to perform the default action itself. Every tier therefore says the same thing about the same page, which is what the op-log is for.