history

history.endTransaction

endTransaction(): void

End an explicit transaction and commit the grouped commands to history.

The commit only happens when the nesting depth returns to 0 (i.e. when the outermost endTransaction() is called). Emits "history:changed". Must be paired with beginTransaction; prefer transaction to avoid mismatched calls.

Returns: void