Update field_checkbox.js

This commit is contained in:
RoboErikG
2016-09-28 16:25:24 -07:00
committed by GitHub
parent 13c5d9b3dd
commit 5b3eb8a9e5

View File

@@ -88,7 +88,7 @@ Blockly.FieldCheckbox.prototype.getValue = function() {
* @param {string} strBool New state.
*/
Blockly.FieldCheckbox.prototype.setValue = function(strBool) {
var newState = (strBool == 'TRUE');
var newState = (strBool.toUpperCase() == 'TRUE');
if (this.state_ !== newState) {
if (this.sourceBlock_ && Blockly.Events.isEnabled()) {
Blockly.Events.fire(new Blockly.Events.Change(