Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > whileIgnoringToolkitEvents

Surface.whileIgnoringToolkitEvents() method#

Run the given function with events suspended.

Signature:

whileIgnoringToolkitEvents(fn: () => any): void;

Parameters#

ParameterTypeDescription
fn() => anyFunction to run. Events are suspended, then this function is run, then events are re-enabled.

Returns:

void