Skip to content

Doc.changeGeneration method

Doc › changeGeneration

Unofficial

Returns a number that can later be passed to isClean to test whether any edits were made.

Signature:

changeGeneration(closeEvent?: boolean | undefined): number

Parameters:

Parameter Type Description
closeEvent? boolean | undefined Whether to close the current history event.

Returns: numberThe generation number.