Added hideChaff calls to the custom fields demo.

This commit is contained in:
Beka Westberg
2019-09-11 15:28:08 -07:00
committed by Neil Fraser
parent 7a068f8521
commit 042ddb043b

View File

@@ -113,6 +113,7 @@
}
function toggleEditable() {
Blockly.hideChaff();
var blocks = workspace.getAllBlocks();
for(var i = 0, block; block = blocks[i]; i++) {
block.setEditable(!block.isEditable());
@@ -120,6 +121,7 @@
}
function toggleCollapsed() {
Blockly.hideChaff();
var blocks = workspace.getAllBlocks();
for(var i = 0, block; block = blocks[i]; i++) {
block.setCollapsed(!block.isCollapsed());