Add callback for checked
This commit is contained in:
1 parent
21943cc3a4
commit
b4892eb10f
1 file changed
+5
@@ -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;
|
||||
};
|
||||
Reference in new issue
Block a user