blockly > Events > CommentChange > (constructor)

Events.CommentChange.(constructor)

Constructs a new instance of the CommentChange class

Signature:

constructor(opt_comment?: WorkspaceComment, opt_oldContents?: string, opt_newContents?: string);

Parameters

Parameter Type Description
opt_comment WorkspaceComment (Optional) The comment that is being changed. Undefined for a blank event.
opt_oldContents string (Optional) Previous contents of the comment.
opt_newContents string (Optional) New contents of the comment.