From 9ec83058891f6b4e8fe6062c1c3f76b5bac5af1e Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Fri, 12 Jun 2020 10:48:49 -0700 Subject: [PATCH] Update documentation (#3965) --- core/block.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/block.js b/core/block.js index c0ab22d49..0e81acc1e 100644 --- a/core/block.js +++ b/core/block.js @@ -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() {