CodeMirrorEditor.operation method
CodeMirrorEditor › operation
Unofficial
Execute a function as a single operation, batching view updates.Signature:
operation(fn: () => T): TParameters:
| Parameter | Type | Description |
|---|---|---|
| fn | () => T | The function to execute. |
Returns: T — The return value of the function.