We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c49472a commit b950fddCopy full SHA for b950fdd
js/basicblocks.js
@@ -2356,6 +2356,7 @@ function initBasicProtoBlocks(palettes, blocks) {
2356
evalBlock.twoArgMathBlock();
2357
evalBlock.dockTypes[1] = 'textin';
2358
evalBlock.defaults.push('abs(x)');
2359
+ evalBlock.hidden = true; // security hole
2360
evalBlock.defaults.push(-100);
2361
2362
var modBlock = new ProtoBlock('mod');
@@ -2413,6 +2414,8 @@ function initBasicProtoBlocks(palettes, blocks) {
2413
2414
negBlock.fontsize = 14;
2415
negBlock.staticLabels.push('–');
2416
negBlock.oneArgMathBlock();
2417
+ negBlock.dockTypes[0] = 'anyout';
2418
+ negBlock.dockTypes[1] = 'anyin';
2419
2420
var minusBlock = new ProtoBlock('minus');
2421
minusBlock.palette = palettes.dict['number'];
0 commit comments