mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
Add comment regarding async nature of listening.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user