Add callback for checked

This commit is contained in:
Paul Kaplan committed 2017-05-23 15:17:52 -04:00
1 parent 21943cc3a4
commit b4892eb10f
1 file changed
+5
+5
View File
@@ -131,5 +131,10 @@ module.exports = function (vm) {
this.jsonInit(json);
};
ScratchBlocks.Blocks.getCheckboxState = function (blockId) {
const monitoredBlock = vm.runtime.monitorBlocks._blocks[blockId];
return monitoredBlock ? monitoredBlock.isMonitored : false;
};
return ScratchBlocks;
};