Update documentation (#3965)

This commit is contained in:
alschmiedt
2020-06-12 10:48:49 -07:00
committed by GitHub
parent 7aa9fa4017
commit 9ec8305889

View File

@@ -568,7 +568,9 @@ Blockly.Block.prototype.bumpNeighbours = function() {
};
/**
* Return the parent block or null if this block is at the top level.
* Return the parent block or null if this block is at the top level. The parent
* block is either the block connected to the previous connection (for a statement
* block) or the block connected to the output connection (for a value block).
* @return {Blockly.Block} The block that holds the current block.
*/
Blockly.Block.prototype.getParent = function() {
@@ -619,7 +621,7 @@ Blockly.Block.prototype.getNextBlock = function() {
};
/**
* Return the previous statement block directly connected to this block.
* Returns the block connected to the previous connection.
* @return {Blockly.Block} The previous statement block or null.
*/
Blockly.Block.prototype.getPreviousBlock = function() {