Skip to content
Snippets Groups Projects
Commit b4892eb1 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Add callback for checked

parent 21943cc3
Branches
Tags
No related merge requests found
......@@ -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;
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment