blockly > BlockDragger > maybeDeleteBlock_

BlockDragger.maybeDeleteBlock_() method

May delete the dragging block, if allowed. If this.wouldDeleteBlock_ is not true, the block will not be deleted. This should be called at the end of a block drag.

Signature:

protected maybeDeleteBlock_(): boolean;

Returns:

boolean

True if the block was deleted.