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:

ParameterTypeDescription
closeEvent?boolean | undefinedWhether to close the current history event.

Returns: numberThe generation number.