blockly > Workspace > addChangeListener

Workspace.addChangeListener() method

When something in this workspace changes, call a function. Note that there may be a few recent events already on the stack. Thus the new change listener might be called with events that occurred a few milliseconds before the change listener was added.

Signature:

addChangeListener(func: (e: Abstract) => void): Function;

Parameters

Parameter Type Description
func (e: Abstract) => void Function to call.

Returns:

Function

Obsolete return value, ignore.