From dd58c2a7766e737c43ce159dc85f5b220ed28f38 Mon Sep 17 00:00:00 2001 From: Blake Bourque Date: Wed, 28 Jan 2015 16:07:30 -0500 Subject: [PATCH] Make the "seats =" block not deletable. If this block is removed, the puzzle cannot be completed. THis will make a good example users can be pointed to for a use example of setDeletable(boolean). --- demos/plane/blocks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/demos/plane/blocks.js b/demos/plane/blocks.js index ea7cdc5cb..18be29c5d 100644 --- a/demos/plane/blocks.js +++ b/demos/plane/blocks.js @@ -31,6 +31,7 @@ Blockly.Blocks['plane_set_seats'] = { this.appendValueInput('VALUE') .appendField(Plane.getMsg('Plane_setSeats')); this.setTooltip(Blockly.Msg.VARIABLES_SET_TOOLTIP); + this.setDeletable(false); } };