Skip to content

Commit 5231bdb

Browse files
author
DD Liu
committed
Revert "add back set checkbox state"
This reverts commit a15ba05.
1 parent 082bb1f commit 5231bdb

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

core/flyout_vertical.js

-19
Original file line numberDiff line numberDiff line change
@@ -557,25 +557,6 @@ Blockly.VerticalFlyout.prototype.checkboxClicked_ = function(checkboxObj) {
557557
};
558558
};
559559

560-
/**
561-
* Explicitly set the clicked state of the checkbox for the given block.
562-
* @param {string} blockId ID of block whose checkbox should be changed.
563-
* @param {boolean} clicked True if the box should be marked clicked.
564-
*/
565-
Blockly.VerticalFlyout.prototype.setCheckboxState = function(blockId, clicked) {
566-
var block = this.workspace_.getBlockById(blockId);
567-
if (!block) {
568-
throw 'No block found in the flyout for id ' + blockId;
569-
}
570-
var checkboxObj = block.flyoutCheckbox;
571-
checkboxObj.clicked = clicked;
572-
if (checkboxObj.clicked) {
573-
Blockly.addClass_((checkboxObj.svgRoot), 'checked');
574-
} else {
575-
Blockly.removeClass_((checkboxObj.svgRoot), 'checked');
576-
}
577-
};
578-
579560
/**
580561
* Handle a mouse-move to vertically drag the flyout.
581562
* @param {!Event} e Mouse move event.

0 commit comments

Comments
 (0)