Skip to content

Commit

Permalink
Revert "add back set checkbox state"
Browse files Browse the repository at this point in the history
This reverts commit a15ba05.
  • Loading branch information
DD Liu committed Jun 15, 2017
1 parent 082bb1f commit 5231bdb
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions core/flyout_vertical.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,25 +557,6 @@ Blockly.VerticalFlyout.prototype.checkboxClicked_ = function(checkboxObj) {
};
};

/**
* Explicitly set the clicked state of the checkbox for the given block.
* @param {string} blockId ID of block whose checkbox should be changed.
* @param {boolean} clicked True if the box should be marked clicked.
*/
Blockly.VerticalFlyout.prototype.setCheckboxState = function(blockId, clicked) {
var block = this.workspace_.getBlockById(blockId);
if (!block) {
throw 'No block found in the flyout for id ' + blockId;
}
var checkboxObj = block.flyoutCheckbox;
checkboxObj.clicked = clicked;
if (checkboxObj.clicked) {
Blockly.addClass_((checkboxObj.svgRoot), 'checked');
} else {
Blockly.removeClass_((checkboxObj.svgRoot), 'checked');
}
};

/**
* Handle a mouse-move to vertically drag the flyout.
* @param {!Event} e Mouse move event.
Expand Down

0 comments on commit 5231bdb

Please sign in to comment.