Add comment regarding async nature of listening.

This commit is contained in:
Neil Fraser
2018-11-06 11:54:54 -08:00
committed by Neil Fraser
parent 6b06f8eefc
commit 2fd931cab9

View File

@@ -618,6 +618,9 @@ Blockly.Workspace.prototype.clearUndo = function() {
/**
* 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.
* @param {!Function} func Function to call.
* @return {!Function} Function that can be passed to
* removeChangeListener.